Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

VBScript Len Function

VBScript Len Function


VBScript reference manual Complete VBScript Reference Manual


The Len function returns the number of characters in a string.

Syntax

Len(string)

Parameters Description
string A string expression.

Example

Example 1

The example above produces the following output:

24

Try it »

Example 2

You can also put a string directly into the Len function:

The example above produces the following output:

24

Try it »


VBScript reference manual Complete VBScript Reference Manual