Hello all.

 

What is the best, recommended/practice, way to detect if an object,
component, exists.  For instance loading an object into the application
scope you only need to load it if it is no longer defined.  So I guess
you could do this but would it be the best approach:

 

<cfif NOT isdefined("application.myObj")>

   <!--- code to create and instantiate the object --->

</cfif>

 

thanks for reading.

Cheers

Martin




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234419
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to