Left


Function Left( string expression, count )


Returns leftmost count characters from string expression.


Syntax a = Left( "Hello There", 5 )


Remarks

Left returns a substring count characters long, from the left (beginning) of the string parameter.


See Also:

Mid Right String Functions


Example Script


NUMBER x

STRING s1 = "Hello There"


FOR x = 1 TO LEN(s1)

PRINT LEFT(s1,x)

NEXT x


Script Output


H

He

Hel

Hell

Hello

Hello

Hello T

Hello Th

Hello The

Hello Ther

Hello There