Which of these is best? 1. <cfset x = getValues[colname][rownum]> <CFINPUT Name="#x#" value="#DefaultValue#">
2. <cfset x = #x#+1> <CFINPUT Name="#getValues.ColName##x#" value="#DefaultValue#"> 3. <CFINPUT Name="#getValues[colname][rownum]#" value="#DefaultValue#"> David DiPietro Systems Developer / Engineer OSU College of Medicine & Public Health Voice (614) 292-5960 Fax (614) 292-0745 -----Original Message----- From: David DiPietro [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 3:29 PM To: CF-Talk Subject: RE: Variable names in CFINPUT Thanks David DiPietro Systems Developer / Engineer OSU College of Medicine & Public Health Voice (614) 292-5960 Fax (614) 292-0745 -----Original Message----- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 2:45 PM To: CF-Talk Subject: RE: Variable names in CFINPUT > <cfset x = getValues[colname][rownum]> > <CFINPUT Name="#x#" value="#DefaultValue#"> > Help me out. I don't get it. > Why isn't this an evaluative action? In the strictest sense, it is - you're evaluating a variable to get a value. However, what Ray is referring to is the use of the Evaluate function, which takes a string, and evaluates this string as if it were an expression. This string evaluation done with Evaluate is relatively expensive, and in this case, unnecessary. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists