Sign in Join
FPDoc Onlineexperiment

TAnsiStringBuilder.CopyTo procedure

Member of TAnsiStringBuilderpublicIn unit sysutils

Copy string bytes to an array.

Declaration

pascal
procedure CopyTo(SourceIndex: Integer; 
 var Destination: Array of AnsiChar = char; 
 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.