Update:. Based on the answers, I first went the way of using IsInstanceOf (), which was designed for this need. However, for some unknown reason, it turned out to be extremely ineffective. When debugging the application later, I simply set some object properties to use instead of IsInstanceOf, which led to an improvement in speed by orders of magnitude.
What I'm trying to do is check the object in ColdFusion to find out what type of component it is. Something like...
<cfif isValid( "compath.dog", currentObj)> ...do something specific with dog objects... </cfif>
I thought it was possible, but we get an error saying that the type I pass does not match one in a valid type list ...
Valid arguments are: any, array, Boolean, date, numeric, query, string, struct, UUID, GUID, binary, integer, float, eurodate, time, creditcard, email, ssn, telephone, zipcode, url, regex, range, component or variableName.
Is there a way to do this in ColdFusion?
coldfusion cfc
Dan roberts
source share