Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Left FunctionThis standard VB function returns a string of a specified length copied from the beginning of another string. SyntaxReturnsA substring of string, of length length, beginning at the first character of string. UsageIf length is greater than the length of string, Left returns the whole string. Left accepts expressions of type string. Left 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 extracts a user's first name from the entire name entered. Sub Button_Click See AlsoLen Function |
Siebel VB Language Reference |