Microsoft.VisualBasic.Strings
Dim result As String = RSet(source, length)
source (required; String)
The string to be right aligned
length (required; Integer)
The length of the returned string
The RSet function right aligns a string.
If the length of source is greater than or equal to length, the function returns only the leftmost length characters.
If the length of source is less than length, spaces are added to the left of the returned string so that its length becomes length.
In VB 6, RSet was implemented as a kind of assignment statement. Because it is implemented as a function in .NET, its syntax is completely different.
In VB 6, RSet could be used only with fixed-length strings. In .NET, RSet works with all string data.
LSet Function