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

TAnsiStringBuilder.CopyTo

Copy string bytes to an array.

Declaration

Source position: syssbh.inc line 85

public procedure TAnsiStringBuilder.CopyTo(

  SourceIndex: Integer;

  var Destination: array of AnsiChar;

  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: Dec 27 2024