Hi.. I forgot how to repeat a Char To by Printed..  


Tweet
(Posted 1 week ago) hardcoal

Hi , lets say i want to type the letter W 10 times.. i think there was a command for repeating a char..
ill be glad to know it

Thanks

(Posted 1 week ago) RonTek commented:

Hey HC, check out EVENT_KEYREPEAT under BRL.EVENT

(Posted 1 week ago) hardcoal commented:

hi. what i wanted is instead of ding print "wwwwwwwwww" something that auto print it 10 times..

  (Posted 1 week ago) TomToad commented:

If you want to repeat spaces, you can use LSet()
Print "Hello"+LSet("",5)+"World"

If you want to repeat other characters, I think you will need to build a string using a For/Next loop.
If you are using BlitzMax NG, you can use the TStringBuilder type which will be faster than using BlitzMax strings.

(Posted 1 week ago) hardcoal commented:

ok thanks :)

Reply To Topic (minimum 10 characters)

Please log in to reply