Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Change to new constructor style; add CFScript example

Determines whether or not a connection to MUMPS is active.

Arguments

None.

Return Value

Returns a CFML boolean value which is true if a connection to MUMPS is open; falseotherwise.

Example

 


Code Block
languagecoldfusionjs
titleCFMLCFScript
linenumberstrue
<cfsetvar mumps = createObject("component", "lib.cfmumps.mumps" new lib.cfmumps.Mumps();
mumps.open();

if(mumps.isOpen()) {
	writeOutput("Connection exists!");
}
else {
	writeOutput("Connection does not exist.");
}

mumps.close();


Code Block
languagecoldfusion
titleCFML
linenumberstrue
<cfset mumps = new lib.cfmumps.Mumps()>
<cfset mumps.open()>

<cfif mumps.isOpen()>
	Connection exists!
<cfelse>
	Connection does not exist.
</cfif>

<cfset mumps.close()>