Table of contents
TOC
Collapse the table of content
Expand the table of content

RSet Statement

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Right aligns a string within a string variable.

Syntax

RSetstringvar=string

The RSet statement syntax has these parts:

PartDescription
stringvarRequired. Name of string variable.
stringRequired. String expression to be right-aligned within stringvar.

Remarks If stringvar is longer than string, RSet replaces any leftover characters in stringvar with spaces, back to its beginning.

NoteRSet can't be used withuser-defined types.

Example

This example uses the RSet statement to right align a string within a string variable.

Dim MyString 
MyString = "0123456789" ' Initialize string. 
Rset MyString = "Right->" ' MyString contains " Right->". 
© 2017 Microsoft