Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

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

ERangeError

  

Range check error.


Documentation generated on: Oct 27 2024