String.TrimStart

Syntax

TrimStart(Source: String): String;

Parameters

Source - source string.

Description

The TrimStart method deletes all the spaces from the beginning of the specified string.

Comments

For details about characters that are included into category of spaces see in MDSN in description of the String.Trim method.

Example

Sub Main;

Var

s, s1: String;

Begin

s := " abcdef ";

s1 := String.TrimStart(s);

End Sub Main;

After executing the example the "s1" variable will contain the abcdef value.

See also:

String