nope that didn't work either :( Element FIRM is undefined in ARESPONSEARR.
The error occurred in C:\Inetpub\wwwroot\address_verify.cfm: line 37 36 : if (isdefined("aResponseArr.Firm") 37 : and len (aResponseArr.Firm)) 38 : {aResponse.Firm = aResponseArr.Firm;} its so wierd that isdefined is returning true in the first have of the IF statement, but then its undefined when I try to do len()... Same results if I remove the len(), the assignment errors because its undefined. On 4/6/06, Tony <[EMAIL PROTECTED]> wrote: > try, and (isDefined("") and len()) scenario > since the existence of it doesnt necessarily > mean the presence of it. > > make sense? > > i dont know how to do this in cfscript, but in cfmx code > its quite easy. let me know if the above works, if not > i can show you how in cfmx code (but you may already know this) > > tony > > > On 4/6/06, Anthony Prato <[EMAIL PROTECTED]> wrote: > > 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:237184 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