left$()
文字列の中から左側文字数分の文字を戻す。
$は省略可能で left() と書いてもよい。
書式:
string
= left$( string ,
number )
string
= left( string ,
number )
例:
a$="hello world"
'next line will print "hel"
print( left$( a$,3
) )
'next line will print "hello w"
print( left$( a$,7
) )
参照:right$()
,mid$()