Creates and fills a string of a certain length with a certain character
Syntax
Usage
result = String[$]( count, ch_code )
or
result = String[$]( count, ch )
Parameters
count
An integer specifying the length of the string to be created.
ch_code
An integer specifying the ASCII character code to be used to fill the string.
ch
A string whose first character is to be used to fill the string.
Return Value
The created string. An empty string will be returned if either ch is an empty string, or count <= 0.
Description
Example
Print String( 4, 69 ) '' prints "EEEE"
Print String( 5, "Indeed" ) '' prints "IIIII"
End 0
Dialect Differences
- The string type suffix "$" is obligatory in the -lang qb dialect.
- The string type suffix "$" is optional in the -lang fblite and -lang fb dialects.
Differences from QB
See also