STR(), STRS() |
|
|
The STR() function returns a string made up of a given number of repeated occurrences of another string. The STRS() function is similar to STR() but operates on successive elements of a dynamic array, returning a similarly structured dynamic array of results.
Format
STR(string {, count})
where
The STR() function returns count occurrences of string. If count is less than one, a null string is returned.
Omitting the count argument defaults to 1 and provides an efficient way to force a data item to be stored as a string.
Examples
PRINT STR("*", 79) This statement prints a line of 79 asterisks.
S = STRS('X':@VM:'Y':@SM:'Z', 2) This statement sets S to be XXVMYYSMZZ
S = STR(N) This statement sets S to be a string representation of the data in N.
See also: |