Calls a MUMPS extrinsic function.
Arguments
Argument | Data Type | Required | Description |
---|---|---|---|
fn | string | Yes | The function to be called |
args | array | Yes | An array of arguments to be passed to fn |
Return Value
Returns a value of type any, representing the value specified by fn's QUIT command.
Example
This example returns the PID of the MUMPS process running fn.
MUMPS Routine
KBBMDEMO QUIT ; PID() QUIT $J
CFML
<cfset mumps = createObject("component", "lib.cfmumps.mumps").open()> <cfset pid = mumps.mFunction("$$PID^KBBMDEMO", [])> <cfoutput> <p>Process ID is #pid#</p> </cfoutput> <cfset mumps.close()>
Add Comment