11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

STR<br />

Syntax<br />

STR(str.expr, num.expr)<br />

Description<br />

The <strong>UniBasic</strong> STR function returns a string composed of a number of repetitions of<br />

a string.<br />

Null Value Handling<br />

If a function encounters the null value in a parameter when a number is expected<br />

(num.expr), a warning message displays, and <strong>UniBasic</strong> uses 0.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

Example<br />

In the following example, the program statement prints a string of 25 hyphens on the<br />

terminal screen:<br />

PRINT STR("-",25)<br />

1-872 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

str.expr Specifies a string expression to concatenate num.expr times.<br />

num.expr Specifies the number of repetitions of the string expression to concatenate.<br />

STR Parameters

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!