TStringHelper.ToCharArray

Return the string as an array of characters.

Declaration

Source position: syshelph.inc line 182

public 
  function ToCharArray : TCharArray;  Overload;
  function ToCharArray(AStartIndex: SizeInt; ALen: SizeInt) : TCharArray
                      ;  Overload;

Description

ToCharArray returns part of the string (Self) as an array of characters. The characters are copied starting at (zero-based) index AStartIndex and at most ALen characters are copied. If AStartIndex and ALen are omitted, all the characters are returned.

Errors

If AStartIndex is less than zero, an EAccessViolation exception may be raised.

See also

Name Description
Copy Copy part of a string.
TStringHelper.Insert Insert a string at a given position
TStringHelper.Substring Return a part of the string

results matching ""

    No results matching ""