LEN()

LEN(S)

RETURNS THE NUMBER OF CHARACTERS OF THE STRING S

  • Type: Function
  • Parameter: 1
  • Group: Strings

ACTION

The function LEN(S) returns the number of characters of the string expression S.

SYNTAX: Result=LEN(S)

  • S = string expression.

USE

  • The function LEN() is used to know the number of characters of a string.

ERROR

  • None.

EXAMPLE

print len("abcd")

print "4"

SEE ALSO

INSERT$()

INSTR()

LEFT$()

LOWER$()

LTRIM$()

MID$()

RIGHT$()

RTRIM$()

STR$()

STRING$()

TRIM$()

UPPER$()