Code?




"This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-----Original Message-----
From: Johnny Le
To: CF-Talk
Sent: Wed Aug 02 01:15:23 2006
Subject: Re: cfparam in cfc?

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:248604
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to