Saturday, August 14, 2010

Visual Basic String Statement : RSet

Purpose : The RSet statement copies one string into another, byte by byte, starting at the rightmost character in the source string and working to the left.

Syntax :
RSet resultvariable = sourcevariable

resultvariable : Destination string for the assignment
sourcevariable : String value you want to assign to the destination variable

Private strNumberBuffer as String *12
Dim sugAmount as Single
Dim strAmount as String
sngAmount = 2003.45
strAmount = Format ( sngAmount , "#,###,###.#0" )
RSet strNumberbuffer = strAmount
lblBuffer.Caption = strNumberBuffer

Rset to right justify the string representation of a number in a label object.
Result is " 2,003.45"

No comments:

Post a Comment