Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Right FunctionThis standard VB function returns a portion of a string beginning at the end of the string. SyntaxReturnsA string of length length copied from the end of string. UsageIf length is greater than the length of string, Right returns the whole string. Right accepts any type of string, including numeric values, and converts the input value to a string. The dollar sign ($) in the function name is optional. If it is included, the return type is string. Otherwise the function returns a variant of vartype 8 (string). If the value of string is NULL, a variant of vartype 1 (Null) is returned. ExampleThis example checks for the extension BMP in a filename entered by a user and activates the Paintbrush application if the file is found. Note that this uses the Option Compare Text statement to accept either uppercase or lowercase letters for the filename extension. Option Compare Text See AlsoInStr Function |
Siebel VB Language Reference |