Raymond Camden wrote:

>>
>>Many people generate dynamic forms and loop over either 
>>form.fieldnames 
>>or the form collection to evaluate the forms that are posted 
>>back. This 
>>frequently involves the Evaluate() function. Something like:
>><cfloop list="#form.fieldnames#" index="i">
>>      <cfset temp = Evaluate(field)>
>>      other code
>></cfloop>
>>
> 
> This is bad for multiple reasons. I don't deny that many people do it,
> but as a reminder, it's much easier, and quicker, to do:
> 
>       <cfset temp = form[field]>


It was in the old days :)
But I wouldn't count on everybody updating his code, even if they 
updated CF version :(

Jochem

______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to