LOTUSSCRIPT LANGUAGE


Examples: RSet statement
Example 1

Dim positFin As String * 20    ' String of 20 null characters
RSet positFin$ = "Right"   ' "Right" is shorter than positFin.
Print positFin$            
' Prints "               Right"
' The string "Right" is right-aligned in the fixed-length
' String variable named positFin, and the initial 15
' characters in positFin are set to spaces.

Example 2

Dim x As Variant
x = "q"
RSet x = "ab"
Print x                          ' Prints "a"
' The string "q" is assigned to the Variant variable x, giving
' it a length of 1. The single leftmost character "a" of the
' two-character string expression "ab" is assigned to x.

See Also