LOTUSSCRIPT LANGUAGE


LSet statement
Example

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

Syntax

LSet stringVar = stringExpr

Elements

stringVar


stringExpr
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
See Also