Tweet 2d blitzmax string command
(Posted 2 years ago) markcwm

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

(Posted 2 years ago) markcwm commented:

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

(Posted 2 years 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 (minimum 10 characters)

Please log in to reply