left$()
Return leftmost number of character in string. You can omit the dollar
character so you can alternatively write it as left() .
System:
string
= left$(
string
,
number
)
string
= left(
string
,
number
)
Example:
a$="hello world"
'next line will print "hel"
print(
left$( a$,3 ) )
'next line will print "hello w"
print(
left$( a$,7 ) )
See also right$() and mid$() commands.