LEFT
 
Syntax

LEFT( string, characters)
Description


Returns n-characters starting from the left of stringString may be a constant or variable string.

String functions may not be nested.

Astring = LEFT("this is a test",5) + RIGHT(Bstring,3)      ' valid string operation

Astring = LEFT( "this "+bstring,5)                                  ' NOT ALLOWED nested operation

Example

DIM text(20) as STRING
text = "hello world"
PRINT
LEFT(text, 5) 'displays "hello"
Differences from other BASICs

See also