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.

If STACKCOMMON is off when one program executes another, the<br />

unnamed common is passed to the executed program and back to the<br />

executing program.<br />

If STACKCOMMON is on when one program executes another program,<br />

unnamed common is not passed to the program you execute. Instead,<br />

unnamed common is saved, and the unnamed common of the called<br />

program is initialized to 0. When control is passed back to the calling<br />

program, unnamed common is restored to its value before the program call.<br />

Unnamed common is never passed to a phantom program.<br />

Note: STACKCOMMON is always on in BASICTYPEs P and M. The default setting<br />

for STACKCOMMON is off in BASICTYPEs R and U.<br />

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 you pass<br />

a file name to MDPERFORM, you must use the actual file name, not a<br />

file variable (which is assigned in the OPEN statement).<br />

CAPTURING,<br />

dyn.array.var<br />

RETURNING,<br />

dyn.array.var<br />

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

of on the display terminal. Each line of the text becomes an attribute in<br />

the array. Output sent to the printer is not affected by this clause.<br />

The RETURNING clause captures error messages resulting from the<br />

command executed with MDPERFORM. This variable contains a<br />

string of error message numbers separated by spaces. If the executed<br />

command creates a spooler hold file, UniData also returns the hold file<br />

number in the same variable.<br />

MDPERFORM Parameters<br />

MDPERFORM 1-467

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

Saved successfully!

Ooh no, something went wrong!