<cfset quantity = form["quantity_" & i]> Just a little style difference, I think at that point is more personal opinion than actual measurable performance gains.
Tim > -----Original Message----- > From: Ryan Guill [mailto:[EMAIL PROTECTED] > Sent: Monday, April 17, 2006 6:17 PM > To: CF-Talk > Subject: Re: Evaluate vs ? > > > Err, sorry, no period in there... > > On 4/17/06, Ryan Guill <[EMAIL PROTECTED]> wrote: > > <cfset Quantity = form.["Quantity_#i#"] /> > > > > > > On 4/17/06, Stan Winchester <[EMAIL PROTECTED]> wrote: > > > I've read you should not use "Evaluate()". In the following > example, what > > > would be best practice? > > > > > > > > > > > > <cfloop index="i" from="1" to="#FORM.itemsOnPage#"> > > > > > > <set Quantity = val(Evaluate("FORM.Quantity_" & i)) /> > > > > > > </cfloop> > > > > > > > > > > > > Thank you, > > > > > > Aftershock Web Design, Inc. > > > > > > by: Stan Winchester > > > > > > President/Developer > > > > > > http://www.aftershockweb.com/ > > > > > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237967 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54