Detailed Descriptions > MIAMEX

MIAMEX 115: Indirect XCALL

xcall MIAMEX, MX_IXCALL, sbrnam, xcbadr, status

This function allows you to forward the calling parameter from one BASIC SBX subroutine to another, evaluating the new subroutine name on the fly.

Parameters

sbrnam  (String)

is the name of the new subroutine to call.

xcbadr  (F,6)

is the address of the parameter structure which was passed to the original routine. (See the documentation on writing your own subroutines for more information on the XCALL parameter structure.)

status  (F,6)

will return 0 for success, >0 for subroutine not found or unable to load, else <0 for other system errors.

Comments

This routine is used in the RXCALL.SBX routine, which allows you to remotely call a routine running on another machine. See the documentation on writing your own subroutines for more information about RXCALL.