We have a command in Gambas "Space" that will produce X number of repetitions of a space.
Print "<"; Space$(8); ">"The result is
< >In certain circumstances, this ability is very helpful.
Is there a command in Gambas which would work similarly for any ASCII character, repeating it X number of times?? Or perhaps in a future release, the Chr$() command can be modified to have an optional second argument for number of repetitions? There's certain circumstances where this ability would save a lot of typing.
For Counter = 100 DownTo 2 TheString = Replace$(TheString,Chr$(40,Counter),Null,gb.Binary) TheString = Replace$(TheString,Chr$(41,Counter),Null,gb.Binary) Next