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.

Parameters<br />

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

Parameter Description<br />

str.expr Specifies a UniData command with appropriate parameters. If<br />

you pass a file name to PERFORM, you must use the actual file<br />

name, not a file variable (which is assigned in the OPEN<br />

statement).<br />

ASYNC | SYNC UniData no longer supports this parameter, but it remains for<br />

syntax compatibility.<br />

ON connection UniData no longer supports this parameter, but it remains for<br />

syntax compatibility.<br />

ON ERROR statements UniData no longer supports this parameter, but it remains for<br />

syntax compatibility.<br />

CAPTURING,<br />

dyn.array.var<br />

RETURNING,<br />

dyn.array.var<br />

The CAPTURING clause stores the output in a dynamic array<br />

instead of on the display terminal. Each line of the text becomes<br />

an attribute in the array. Output sent to the printer is not affected<br />

by this clause.<br />

The order of CAPTURING and RETURNING is<br />

interchangeable.<br />

The RETURNING clause captures error messages resulting<br />

from the command executed with PERFORM. This variable<br />

contains a string of error message numbers separated by spaces.<br />

If the executed command creates a spooler hold file, UniData<br />

also returns the hold file number in the same variable.<br />

EXECUTE Parameters<br />

EXECUTE 1-267

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

Saved successfully!

Ooh no, something went wrong!