qbasic.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
LEN Function
  Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
Returns the number of characters in a string or the number of bytes
required to store a variable.
 
LEN(stringexpression$)
LEN(variable)
 
    ■ stringexpression$    Any string expression.
    ■ variable             Any nonstring variable.
 
Example:
    a$ = "Microsoft QBasic"
    PRINT LEN(a$)
 
See Also    OPEN