LSet Statement

Justifies the string by the left edge of the string variable.

Syntax

LSet stringvar = string

The LSet statement syntax has these parts:

Part Description
stringvar Required. The name of the string variable.
string Required. The string expression to be justified by the left edge of the string variable.

Remarks

The LSet function replaces all symbols, remaining in the string variable with spaces.
If the string is longer, than the variable, the LSet function copies as many symbols from the start of the string as can fit into the variable.

Example

In this example the LSet statement is used to justify the string by the left edge of the string variable.

Dim MyString
MyString = "0123456789"   ' Initializes the string.
Lset MyString = "<-Left"  ' MyString contains "<-Left ".
Trace "|"&MyString&"|"

See Also

RSet Statement, Data Types