Repeat |
Top Previous Next |
Syntax - REPEAT <variable name> <String> <Quantity> Where: <variable name> is the user defined name that is assigned to the variable. <String> is a literal string or a variable that contains a literal string. <Quantity> is an integer or a variable that contains an integer.
Description: This command is used to repeat the <String> one or more times until the number of repeats is equal to the <Quantity>. The resulting literal string is store as the <variable name>.
Sample: The following statement uses REPEAT to create a string of thirty spaces that is stored in NewString. REPEAT NewString " " 30
|