<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?
David DiPietro Systems Developer / Engineer OSU College of Medicine & Public Health Voice (614) 292-5960 Fax (614) 292-0745 -----Original Message----- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 2:12 PM To: CF-Talk Subject: RE: Variable names in CFINPUT > Add a counter > <cfset i = 0> > <CFLOOP Query="GetFields"> > <cfset i = #1#+1> > <CFQUERY name="GetValues" datasource="#dsn#"> > SELECT #GetFields.FieldName# > FROM #TableName# > WHERE ID=#ID# > </CFQUERY> > <CFSET > DefaultValue=evaluate("GetValues.#GetFields.FieldName#")> Oops, no - time for the evaluate police. To get a dynamic column/row from a query, just do: <cfset x = getValues[colname][rownum]> > <CFINPUT Name="#GetFields.FieldName##i#" > value="#DefaultValue#"> > </CFLOOP> > ======================================================================= Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email : [EMAIL PROTECTED] Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com 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