LEN( s$ )

LEN( string )

LEN( structName.struct )

Description:

This function returns the length in characters of string, which can be any valid string expression. It also returns the size of a struct.

Usage:

  prompt "What is your name?"; yourName$
  print "Your name is "; len(yourName$); " letters long"
  struct person, name$ as ptr, age as long
  print len(person.struct)