If aResponseArr is structure then use StructKeyExists(aResponseArr, "Firm")
-----Original Message----- From: Anthony Prato [mailto:[EMAIL PROTECTED] Sent: Thursday, April 06, 2006 4:25 PM To: CF-Talk Subject: isdefined on a web service? I'm working on using an address validation web service. It's giving me trouble because if it doesn't find something, it just doesn't return that field at all. I wrapped isdefined around everything but now I get this error... ------------------------------------------------------------ Element FIRM is undefined in ARESPONSEARR. The error occurred in C:\Inetpub\wwwroot\address_verify.cfm: line 36 34 : if (isdefined("aResponseArr.LLCertainty")) {aResponse.LLCertainty = aResponseArr.LLCertainty;} 35 : if (isdefined("aResponseArr.CountyNum")) {aResponse.CountyNum = aResponseArr.CountyNum;} 36 : if (isdefined("aResponseArr.Firm")) {aResponse.Firm = aResponseArr.Firm;} --------------------------------------------------------------- Why am i getting a undefined error when using isdefined? isn't that the point of the function? I guess I'll have to use try/catch... whats the syntax for that in cfscript again? Anthony ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237189 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

