Updated: 10/14/2021, 2:20:00 PM
Created: 10/14/2021, 2:20:00 PM
Last Updated By: mikes
Read Time: 1 minute(s)
The STRS function to produces a dynamic array containing the specified number of repetitions of each element of dynamic.array. It takes the form:
dynamic.array is an expression that evaluates to the strings to be generated.
repeat is an expression that evaluates to the number of times the elements are to be repeated. If it does not evaluate to a value that can be truncated to a positive integer, an empty string is returned.
If dynamic.array evaluates to null, it returns null. If any element of dynamic.array is null, null is returned for that element. If repeat evaluates to null, the STRS function fails and the program enters the debugger.
An example of use is as:
arr1 = "A" : @VM : "B" : @VM : "C" CRT STRS (arr1, 3)
Go back to jBASE BASIC
Go back to Programmers' Reference Guide