STRING$ function
Purpose:
STRING$ returns a string containing Count%
occurrences of an Windows Code Page code point.
Syntax:
RetStr = STRING$(Count AS INTEGER, CodePoint AS INTEGER)
Return Value:
- Data type: STRING
RetStr A string containing Count occurrences of the character corresponding to the
Windows Code Page code point in CodePoint.
Parameters:
- Data type: STRING
Count number of characters to write to
RetStr.
- Data type: STRING
CodePoint Windows Code Page code point of
character to be written to RetStr. The BCX
function ASC can be used as the argument for this parameter,
as in Example 1 below.
|
Example 1:
DIM str1$
str1$ = STRING$(10, ASC("z"))
PRINT str1$
Result:
zzzzzzzzzz
Remarks:
See also the REPEAT$
function.
BCX Console Sample Programs using the STRING$
function.