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 />

Examples<br />

Note: A sample program that calls an external subroutine is provided in “Appendix<br />

A, Sample Program” in Developing <strong>UniBasic</strong> Applications.<br />

In the following example, the program statement calls the subroutine VID, passing<br />

the variables TITLE and ST:<br />

CALL VID(TITLE,ST)<br />

In the next example, the program segment calls the subroutine MONTHTOTAL by<br />

calling @var VID (see CALL Parameter table above), which holds the string<br />

“MONTHTOTAL”. Note that VID is defined before it is called.<br />

VID = "MONTHTOTAL"<br />

CALL @VID(TOTAL)<br />

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

sub.name The name of the called subroutine.<br />

@var A variable that contains the name of the subroutine to call.<br />

argument1, argument2 Any valid argument passed to the subroutine.<br />

MAT array1,<br />

MAT array2<br />

Any valid array passed to the subroutine.<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 />

CALL Parameters

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

Saved successfully!

Ooh no, something went wrong!