(Posted 1 year ago) markcwm

LSet$( str$,n ) Returns: A string of length n, padded with spaces. Description: Left justify string. Reference: BASIC / Brl.Retro

(Posted 1 year ago) markcwm commented:

TAS posted: if str$>n then the return string will be truncated to length n.

(Posted 1 year ago) markcwm commented:

markcw posted: Slice equivalent is str[..n].

' lset.bmx

str$="Hello World!"

Print "'"+LSet( str,Len(str)+5 )+"'"
Print "'"+RSet( str,Len(str)+5 )+"'"

Print "'"+LSet( str,Len(str)-5 )+"'"
Print "'"+RSet( str,Len(str)-5 )+"'"

Reply To Topic

Please log in to reply