Skip to main content
Version: I2023.4.1

Len

Syntax

Len(string | varname)

Input Parameters

string
Any valid string expression. If string contains Null, Null is returned.

varname
Any valid variable name. If varname contains Null, Null is returned. If varname is a Variant, Len treats it the same as a String and always returns the number of characters it contains.

Return Value

Returns a Long containing the number of characters in a string or the number of bytes required to store a variable.