Nope. I tried that. You end up with a variable named "formfield" with a value of the form.fieldnames at count. Then you end up with "formfield" = 4. Ian V.P. Tech CatholicStore.com ----------------------------------------------------- <cfset formField = Listgetat(Form.fieldnames, count)> <CFSET "#formField#" = 4> HTH, Robert -----Original Message----- From: Ian [mailto:[EMAIL PROTECTED]] Sent: Friday, September 08, 2000 3:47 PM To: [EMAIL PROTECTED] Subject: Replacing a value in the list form.fieldnames I have a list of variables sent by a form. I need to make sure that none of the variable values are incompatible with each other. This isn't the problem. The problem is changing the Form.whatever = value to a compatible value (Form.field2 = 2. Form.field3 = 3 but 3 is not compatible with 2 so I need to change Form.field3 to = 4). Using CFSET I can't use a function on the left side of the = <CFSET (Listgetat(Form.fieldnames, count) = 4>. I can't hard code it because the fieldnames are drawn from a database and change depending on what itemthe form is built for. Any suggestions? Ian ____________________________________________________________________ Get your own FREE, personal Netscape WebMail account today at http://home.netscape.com/webmail ------------------------------------------------------------------------------ Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.