It sounds like the data does not exist in the variable, but that the variable does exist... is that possible?
A better way to do that would be to use structKeyExists() around your variables and test for them first. On 11/11/05, John Beynon <[EMAIL PROTECTED]> wrote: > ok, here's a chunk of code; > > <cftry>Prices: > £#numberformat(application.siteCodes.sitecode[thissitecode].pricerange.minprice)# > - > £#numberformat(application.siteCodes.sitecode[thissitecode].pricerange.maxprice)#</p> > <cfcatch><!--- invisibly catch errors---></cfcatch></cftry> > > If the data is not present in the application scope what would you > expect to see? > > 1. Nothing > 2. Prices: > > In all my dealings previously if the cftry fails then it all fails and > then the cfcatch handles it - why then am I seeing Prices: displayed > on my screen.... > > thanks, > > john. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223939 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54