Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Len FunctionThis standard VB function returns the length of a string or string variable. Syntax ASyntax BReturnsThe length of string or the string contained in the variable varName. UsageIf the argument is a string, the number of characters in the string is returned. If the argument is a variant variable, Len returns the number of bytes required to represent its value as a string; otherwise, the length of the built-in data type or user-defined type is returned. If syntax B is used, and varName is a variant containing a NULL, Len returns a Null variant. ExampleThis example returns the length of a name entered by the user (including spaces). Sub Button_Click See Also |
Siebel VB Language Reference |