Skip to content

TUnicodeStringBuilder.CopyTo

Copy string bytes to an array.

Declaration

Source position: syssbh.inc line 85

public 
procedure TUnicodeStringBuilder.CopyTo(SourceIndex: Integer; 
                                      var Destination: Array of WideChar; 
                                      DestinationIndex: Integer; 
                                      Count: Integer);

Description

CopyTo copies aCount characters from the string, starting at position SourceIndex (0-based) in the string to build, to the character array Destination at position DestinationIndex.

Errors

If the range of characters to copy falls outside the allowed range of characters in either source (available characters) or destination (available room for characters), then an ERangeError exception is raised.

See also

Name Description
ERangeError Range check error.