Len Function

Action

Returns the length of a string.

Syntax

iLength = Len (sString)
Variable Description
iLength The number of characters in the string. INTEGER.
sString The string whose length to return. STRING.

Notes

Len returns the number of characters in sString. If sString is an empty string (""), Len returns 0.

Example

STRING sName
sName = "XYZ"
Print (Len (sName)) // prints: 3