11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

For CALLC, developers create a DLL and then call that DLL from UniData. E-type<br />

VOC entries for each function called from a DLL communicate interface information<br />

to UniData. For additional information and examples, see Administering UniData on<br />

UNIX or Administering UniData on Windows Platforms.<br />

Examples<br />

In the following example, the called subroutine draws a circle with its center at the<br />

twelfth row and twelfth column and a radius of 3:<br />

RADIUS = 3<br />

CENTER = "12,12"<br />

CALLC DRAW.CIRCLE(RADIUS,CENTER)<br />

In the next example, the subroutine name is stored in the variable SUB.NAME, and<br />

it is called indirectly:<br />

SUB.NAME = DRAW.CIRCLE<br />

CALLC @SUB.NAME(RADIUS,CENTER)<br />

In the next example, CALLC is used as a function, assigning the return value of the<br />

subroutine PROGRAM.STATUS in the variable RESULT:<br />

RESULT = CALLC PROGRAM.STATUS<br />

Related Command<br />

<strong>UniBasic</strong><br />

CALL<br />

CALLC 1-124

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

Saved successfully!

Ooh no, something went wrong!