Calls a MUMPS extrinsic function.
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 |
autoRelink (CFMumps 0.05 and later only) | boolean | No | If true, the routine called through this API will be automatically re-linked before being executed. This allows you to use the most recent version of a routine without re-starting the CF application server. Omitting this parameter is equivalent to supplying it with a value of false. |
Returns a value of type any, representing the value specified by fn's QUIT command.
This example returns the PID of the MUMPS process running fn.
Code Block |
---|
title | MUMPS Routine |
---|
linenumbers | true |
---|
|
KBBMDEMO
QUIT
;
PID()
QUIT $J |
Code Block |
---|
language | coldfusionjs |
---|
title | CFMLCFScript |
---|
linenumbers | true |
---|
|
<cfset mumpsvar mumps = new lib.cfmumps.Mumps();
mumps.open();
var pid = createObjectmumps.mumps_function("componentPID^KBBMDEMO", []);
writeOutput("<p>Process ID is #pid#</p>");
mumps.close(); |
Code Block |
---|
language | coldfusion |
---|
title | CFML |
---|
linenumbers | true |
---|
|
<cfset mumps = new lib.cfmumps.mumps")Mumps()>
<cfset mumps.open()>
<cfset pid = mumps.mFunctionmumps_function("$$PID^KBBMDEMOPID^KBBMDEMO", [])>
<cfoutput>
<p>Process ID is #pid#</p>
</cfoutput>
<cfset mumps.close()> |