VBScript » Functions » Len

Version: 1.0

Syntax:
Len(String)

The Len function returns the length of the string or the byte size of the variable.

You can give the function the string or the string name, String or the variable name, Varname.

Examples

Code:
<% =Len("Clouded leopards are an endangeredspecies.") %>
Output:
43
Language(s): VBScript
Code:
<% anystring ="Clouded leopards are anendangered species." %>
<% =Len(anystring) %>
Output:
43
Language(s): VBScript
Code:
<% anyvariable = 123.456 %>
<% =Len(anyvariable) %>
Output:
7
Language(s): VBScript

See Also: