String
STRING(number, character)
Description
STRING returns a string created by concatenating a given number of a specified character. The required argument, number, is any valid numeric expression. The required argument, character, is a character or string expression whose first character is repeated in the returned string.
Example
REM STRING Example 'STRING createsastringrepeatingacharacter DIM Message Message = STRING(10, "Hello World!") PRINT Message Message = STRING(10, CHR(ASC("i"))) PRINT Message
Output
HHHHHHHHHH iiiiiiiiii
Related Items