Len

From NSB App Studio
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This function is for BASIC compatibility. It is not available in pure JavaScript projects.

Len(string | variable)

Description

Len returns an integer specifying the number of characters in a string, or the number of elements in an array.

Example (Basic)

Rem Len Example
'Len returns string length or variable size
Dim Frog, Survived
Frog = "Staring"
Survived = 2
Print "Len of Frog:", Len(Frog)
Print "LenB of Frog:", LenB(Frog)
Print "Len of Survived:", Len(Survived)

Output

Len of Frog:  7
LenB of Frog: 7
Len of Survived:     1