PROCEDURE
Jump to navigation
Jump to search
mark beginning of macro procedure
[NAME] - Name of the PROCEDURE [PARAMETER 1] - Optional 1st parameter .. .. .. [PARAMETER N] - Optional Nth parameter PROCEDURE is a macro-based command that is used to mark the beginning of a PROCEDURE within a macro. Optional 1-N parameters may be passed to the PROCEDURE. PROCEDURES in NeXtMidas are structured just like procedures in FORTRAN, and are used to modularize the macro in a similar way. PROCEDURES share a common results table with the rest of the macro. This means commands within a PROCEDURE can access results declared outside of the PROCEDURE, and vice versa. Switches: NONE Examples: startmacro .. call testProc .. endmacro procedure testProc SAY "This is the inside of the procedure" return See also: CALL, SUBROUTINE, RETURN