Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?



The STR function allows the duplication of a string a number of times. The function generally takes the form: 

STR(expression1, expression2)


expression1 will evaluate to the string to duplicate and may be of any length.

expression2 should evaluate to a numeric integer, which specifies the number of times the string will be duplicated. If this value is non-numeric then jBASE will enter the debugger. If it is null or negative then the function returns "" (null).

An example of use is:

x999 = STR("x", 999) 

Go back to jBASE BASIC.

Was this article helpful?