Although not as flexible as the EXECUTE function, CALL_PROCEDURE is much faster. Therefore, CALL_PROCEDURE should be used in preference to EXECUTE whenever possible.
The following example shows how to call the PLOT procedure indirectly with a number of arguments:
CALL_PROCEDURE, 'PLOT', FINDGEN(100), FINDGEN(100), /POLAR
A “spiral” plot should appear.
CALL_PROCEDURE, Name [, P1, ..., Pn]
A string containing the name of the procedure do be called. This argument can be a variable, which allows the called procedure to be determined at runtime.
The arguments to be passed to the procedure given by Name. These arguments are the positional and keyword arguments documented for the called procedure, and are passed to the called procedure exactly as if it had been called directly.
This page has no comments yet. Be the first one!