Copy string bytes to an array.
Source position: syssbh.inc line 85
public procedure TUnicodeStringBuilder.CopyTo( |
SourceIndex: Integer; |
var Destination: array of WideChar; |
DestinationIndex: Integer; |
Count: Integer |
); |
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.
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.
|
Range check error. |