LSet statement (LotusScript® Language)

Assigns a specified string to a string variable and left-aligns the string in the variable.

Syntax

LSet stringVar = stringExpr

Elements

stringVar

The name of a string variable. It may be a fixed-length String variable, a variable-length String variable, or a Variant variable.

stringExpr

The string to be assigned to the variable and left-aligned.

Usage

If the length of stringVar is greater than the length of stringExpr, LotusScript® left-aligns stringExpr in stringVar and sets the remaining characters in stringExpr to spaces.

If the length of stringVar is less than the length of stringExpr, LotusScript® copies only that many of the leftmost characters from stringExpr to stringVar.

If stringVar contains a numeric value, LotusScript® converts it to a string to determine the length of the result.

If stringVar is a Variant, it can't contain NULL.

You can't use LSet to assign values from an instance of one user-defined data type to another.

Example