10 6 40 LeftTrim

LANSA Technical

10.6.40 LeftTrim

LeftTrim can be used to remove leading blanks, or other characters, from a string.

The OfText parameter can contain more than one character.

Input Parameters

OfText - Character or characters to be trimmed. The default is a blank

Example

In this example, if #String contained '   ABCDE', the result would be 'ABCDE':

#Com_owner.Caption := #String.LeftTrim

 

In this example, if #String contained AAA the result would be A. After the first AA has been removed from the string, only a single A remains that does not match the OfText parameter value:

#Com_owner.Caption := #String.LeftTrim( AA )

 

Ý 10.6 Alphanumeric/String Intrinsic Functions