Len


Function Len( string )


Returns an integer specifying the length in bytes of string.


Syntax x = Len( "Hello There" )


Remarks

Len returns an integer value indicating the length of string in bytes.


See Also:

Mid String Functions


Example Script


NUMBER x = 0

NUMBER i

STRING s1 = "Hello There"


FOR x = 1 TO 5

i = LEN(LEFT(s1,x))

PRINT i

NEXT x


Script Output


1

2

3

4

5