Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Rset StatementThis standard VB function right-aligns one string inside another string. SyntaxRset string = string-expression ReturnsUsageIf string is longer than string-expression, the leftmost characters of string are replaced with spaces. If string is shorter than string-expression, only the leftmost characters of string-expression are copied. Rset cannot be used to assign variables of different user-defined types. ExampleThis example uses Rset to right-align an amount entered by the user in a field that is 15 characters long. It then pads the extra spaces with asterisks (*) and adds a dollar sign ($) and decimal places (if necessary). Dim amount as String * 15 replacement = "*" See Also |
Siebel VB Language Reference |