FILL() Function - Fill String
Syntax
FILL(int{,string}{,ERR=lineref})
Description
The FILL() function generates repeating strings on the fly without the need for a DIM statement.
Parameter |
Description |
---|---|
int |
Length of returned string, in bytes. |
string |
String to be returned. If this parameter is not included, the returned string is filled with spaces. |
ERR=lineref |
Branch to be taken if an error occurs during execution. |
Unlike DIM, where the result is initialized with only the first character of string, the FILL() function propagates the full value of string until the desired length is achieved.
Examples
|