Navigation:  ThinBASIC Language > thinBasic Functions > String functions >

LEN

Previous pageReturn to chapter overviewNext page

 

Description

 

FAST version of LEN function working on scalar string variable only!

Return the length of a string expression.

 

Syntax

 

n = LENF(StringVariable)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

StringVariable

Variable

No

IMPORTANT: a scalar string variable.

 

This parameter can only be:

a single global or local string variable
a string element of a user defined type (UDT)

 

 

 

Remarks

 

LEN will always make a copy of the string expression passed as parameter.

 

Restrictions

 

See also

 

String Handling, LEN, StrPtrLen,

 

Examples