Hmm, this could be it. It is variables scope. Although it only NOT works occasionally. It doesn't fail every single time.
What I do is I create a structure in the init method to hold the form and url variables that I passed into the CFC. I use the cfparam to make sure the variable exists in the structure before I use it. Johnny >What scope? I think vars in the variables scope have to be referenced >as variables.var_name or they won't work. > >~Brad > >-----Original Message----- >From: Johnny Le [mailto:[EMAIL PROTECTED] >Sent: Tuesday, August 01, 2006 11:40 AM >To: CF-Talk >Subject: cfparam in cfc? > >Does cfparam work well in CFC? Occasionally I get errors that say a >variable is not defined even though I have cfparam right above it to >define the variable. Does anyone know what is going? Should I change >all my cfparam to cfif statement to define my variables within CFCs? > >Johnny ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:248583 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4