LTRIM

Concept Link IconSee also

Return a copy of a string without any leading spaces.

WebVue support - Yes.

Syntax

StrVal = LTRIM(string);

Return type: STR.

Argument

Meaning

string

The string whose leading spaces are to be removed. Type STR.

Example

SUB Main()

'Declare strings

DIM strResult as Str;

DIM strValue as Str;

 

strValue = "Hello, World!"; 'preceding spaces

strResult = LTrim(strValue);

PRINT("LTrim(",strValue,") = ",strResult);

'Display "LTrim( Hello, World!) = Hello, World!"

END SUB