System > System Assembly Classes > String > String.TrimStart
TrimStart(Source: String): String;
Source. Source string.
The TrimStart method deletes all the spaces from the beginning of the specified string.
For details about characters that are included into category of spaces see in MDSN in description of the String.Trim method.
Sub UserProc;
Var
s, s1: String;
Begin
s := " abcdef ";
s1 := String.TrimStart(s);
End Sub UserProc;
After executing the example the "s1" variable contains the abcdef value.
See also: