Thank you. That part is working, but this is starting to give me a headache.
How about: <cfset "confirmrestrictionsite1_#primernum#" = #ucase(confirmrestrictionsite1_primernum)#> Of which I have tried several variations ... Rick. -----Original Message----- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 2:51 PM To: CF-Talk Subject: RE: Naming variables within a loop Try: FORM["selectrestrictionsite1_#primernum#"] or: FORM["selectrestrictionsite1_" & primernum] Ade -----Original Message----- From: Richard Colman [mailto:[EMAIL PROTECTED] Sent: 08 June 2005 22:46 To: CF-Talk Subject: Naming variables within a loop I am having trouble with this sort of thing: <cfloop from="1" index="primernum" to="#form.num_custom_primers#"> <cfif (form.selectrestrictionsite1_#primernum# is not "") and (form.restrictionsite1_#primernum# is not "")> ...... </cfloop> I am getting invalid CFML constuct errors. It does not appear to like: form.selectrestrictionsite1_#primernum# The actual form variable names would be: form.selectrestrictionsite1_1 form.selectrestrictionsite1_2 form.restrictionsite1_1 form.restrictionsite1_2 etc. as it loops through. What is the best way to do this? TNX. Richard Colman -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.6.5 - Release Date: 07/06/2005 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209050 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

