Skip to content

TStringHelper.Substring

Return a part of the string

Declaration

Source position: syshelph.inc line 174

public 
  function Substring(AStartIndex: SizeInt) : string;  Overload;
  function Substring(AStartIndex: SizeInt; ALen: SizeInt) : string
                    ;  Overload;

Description

SubString returns the portion of the string starting at (zero-based) index AStartIndex with length ALen. If ALen is omitted, then all remaining characters are returned.

See also

Name Description
Copy Copy part of a string.
TStringHelper.Insert Insert a string at a given position
TStringHelper.ToCharArray Return the string as an array of characters.