Correct. 

-----Original Message-----
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 22, 2008 10:19 AM
To: cf-talk
Subject: Re: How can this CFC be improved?


 >  the lifetime of the component's instance

Such as, if the variable is going to be used in other methods before
returning data to the calling page?


Dawson, Michael wrote:
> Couple others suggestions...
>
> You need to VAR your query:
>
> In your cffunction tag right after the cfargument tag, add:
>
> <cfset var qUpdateProduct = "">
>
> Also, Lose the " and # characters:
>
> <cfset variables.product_id = arguments.product_id>
>
> (However, you don't really need to set this variable unless you need 
> to store the product_id for the lifetime of the component's instance.)
>
> mike

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314233
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