AKD BASIC User Guide | 5 AKD BASIC Functions
5.28 STRING$()
General Information
Type Function
Description
Returns a string containing the specified number of occurrences of the specified
character.
Syntax
1) x$ = STRING$(n, a$)
or
2) x$ = STRING$(n, m)
Instructions
n is the number of occurrences of the desired character (the length of the returned string).
In 1), the returned string will consist of the first character in a$
In 2), the returned string will consist of the ASCII value of m.
Example
Print String$(5, 45) 'prints: -----
Print String$(5, "A") 'prints: AAAAA
Related Topics
SPACE$()
91 Kollmorgenâ„¢ | March 30, 2012