TrimLeft
Previous  Top  Next

Prototype

StrOutput:=TrimLeft(strInput)

Description

It returns the same shown string even if with no beginning spaces, if existent.

Parameters

StrInput
: input string.

Returned value

StrOutput
: output string.

Notes

None.

Example

// It opens a text file
UnFile:=TextFileOpen('c:\documents\letter.txt',false);

// It reads a line from file
text:=TextFileReadln(UnFile);

// It shows a message with the read text
ApplicationLog(_CurrentAgent,'File contains the following text: ' + text);

// It returns string without beginning spaces
NewText=TrimLeft(text);

// It shows a message with the modified read text 
ApplicationLog(_CurrentAgent,'Here it is the modified text : ' + NewText);

// It closes the file
FileClose(UnFile);