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.

REPLACE<br />

Syntax<br />

REPLACE(dyn.array.expr, attrib.expr, val.expr, subval.expr, replace.expr)<br />

dyn.array.expr = replace.expr<br />

Description<br />

The <strong>UniBasic</strong> REPLACE function replaces data in a dynamic array with an<br />

expression.<br />

If an attribute, value, or subvalue is less than 0, the replacement string is placed after<br />

the last attribute, value, or subvalue as appropriate. If the position given does not exist<br />

(for example, attribute 6 specified in an array with two attributes), the necessary<br />

number of attribute, value, and subvalue marks are added to create the specified<br />

position.<br />

Null Value Handling<br />

With null value handling on, when <strong>UniBasic</strong> encounters the null value in a command<br />

parameter when a number is expected (attrib.expr, val.expr, subval.expr,), it displays<br />

a warning message and uses 0.<br />

1-682 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!