[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
##############################################################################
###+------+###################################################################
#+-| CALL |----------------------------------------------------+##############
#| +------+ The CALL command executes a binary file previously |##############
#| placed in memory by the LOAD command. |##############
#+-------------------------------------------------------------+##############
##############################################################################
##############################################################################
#+--| Syntax |---------+######################################################
#| CALL <C-exp> |######################################################
#+---------------------+######################################################
##############################################################################
##############################################################################
#########+---| Description |----------------------------------------+#########
#########| The expression after the CALL command must be the same |#########
#########| expression used to LOAD the module. If the CALL <C-exp> |#########
#########| contains an optional drive and path, FORCE isolates the |#########
#########| filename from <C-exp>. |#########
#########| -------------------------------------------------------- |#########
#########| Use of the CALL and LOAD commands is NOT recommended. |#########
#########| These commands are supported by FORCE only for |#########
#########| compatibility. |#########
#########+----------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 1 |-------------------------------------------+#########
#########| * Load and call a module. |#########
#########| |#########
#########| LOAD "display" && Look for file |#########
#########| && display.bin |#########
#########| CALL "display" && Call the module just |#########
#########| && loaded by LOAD command. |#########
#########+----------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 2 |-------------------------------------------+#########
#########| * Call a setup module from an array. |#########
#########| |#########
#########| VARDEF |#########
#########| CHAR(14) s[6] = "setup1","init2b","init3b",; |#########
#########| "x3d","inst1a","inst2a" |#########
#########| ENDDEF |#########
#########| |#########
#########| {...} |#########
#########| FOR r = 0 to 5 |#########
#########| LOAD s[r] |#########
#########| NEXT |#########
#########| INPUT "Which setup? " TO which |#########
#########| CALL s[which] |#########
#########+----------------------------------------------------------+#########
##############################################################################
See Also:
LOAD
RELEASE MODULE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson