Archive for the ‘Uncategorized’ Category

When IsStruct not a Struct?

Tuesday, September 16th, 2008

As mentioned on the House of Fusion. [310165]

An IsStruct() call will return true, not sure if in only some cases, when questioning that of a ColdFusion CFC object. Below is an example that uses the “cfcexplorer.cfc” that is located in the CFIDE. (as of 8.0.1)

<cfset obj = CreateObject("component",
    "CFIDE.componentutils.cfcexplorer")
/>
<cfoutput>
    IsStruct: #IsStruct(obj)# <br />
    IsObject: #IsObject(obj)#
</cfoutput>