STR(), STRS()

Top  Previous  Next

 

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

 

stringevaluates to the string to be repeated.

 

countevaluates to the number of repeats of string that are required.

 

 

The STR() function returns count occurrences of string. If count is less than one, a null string is returned.

 

 

Example

 

PRINT STR("*", 79)

 

This statement prints a line of 79 asterisks.

 

 

See also:

SPACE()