Basic30 Language Reference
len Function

Return the length of a string

Function len(str as String) as uInteger

Requirements

  1. This function requires the link time library "basic30.a".
  2. The flie <libs/basic30.bas> must be included in the Basic source to use this function.

Examples

#include <libs/basic30.bas>

Dim st(10) as String
Dim x as uInteger
st="Test"
x = len(st)		' x = 4