You might want to fill a string with say, 100 m's, for some strange reason (!), or fill a string with 255 spaces before being passed to a API function. If you want to fill a string with spaces, you can use the Space function:
sString = Space(100)
This fills sString with 100 spaces.
If you want to fill it with another character, you use the String function. For example, the code below fills sString with 5 M's:
sString = String(10, "M")
Simple!
Comments