Skip to Content
VB.NET Language in a Nutshell, Second Edition
book

VB.NET Language in a Nutshell, Second Edition

by Steven Roman PhD, Ron Petrusha, Paul Lomax
April 2002
Intermediate to advanced
688 pages
19h 51m
English
O'Reilly Media, Inc.
Content preview from VB.NET Language in a Nutshell, Second Edition

Name

RSet Function

Class

Microsoft.VisualBasic.Strings

Syntax

RSet(Source, Length)
Source (required; String)

The string to be right aligned

Length (required; Integer)

The length of the returned string

Return Value

String

Description

Right aligns a string

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

VB.NET/VB 6 Differences

  • In VB 6, RSet was implemented as a kind of assignment statement. Because it is implemented as a function in VB.NET, its syntax is completely different.

  • In VB 6, RSet could be used only with fixed-length strings. In VB.NET, RSet works with all CTS String data.

See Also

LSet Function

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

VB .NET Language in a Nutshell

VB .NET Language in a Nutshell

Steven Roman PhD, Ron Petrusha, Paul Lomax

Publisher Resources

ISBN: 0596003080Supplemental ContentCatalog PageErrata