VBScript Len Function
Complete VBScript Reference
The Len function returns the number of characters in a string.
Syntax
Parameter |
Description |
string |
A string expression |
varname |
A variable name |
Example 1
dim txt
txt="This is a beautiful day!"
document.write(Len(txt))
Output:
24
|
Example 2
document.write(Len("This is a beautiful day!"))
Output:
24
|
Complete VBScript Reference
|