RSet statement (LotusScript® Language)

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

Syntax

RSet stringVar = stringExpr

Elements

stringVar

The name of a fixed-length String variable, a variable-length String variable, or a Variant variable.

stringExpr

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

Usage

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

If the length of stringVar is less than the length of stringExpr, LotusScript® copies only as many leftmost characters from stringExpr as will fit within stringVar.

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

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

You cannot use RSet to assign variables of one user-defined data type to variables of another user-defined data type.

Example