RSet Function


RSet Function

Class

Microsoft.VisualBasic.Strings

Syntax

     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

Description

The RSet function right aligns a string.

Usage at a Glance

  • 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.

Version Differences

  • 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.

See Also

LSet Function




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net