Do anyone know what the proper syntax is for adding a loop variable to 
a variable name, like the following, which is not working:

<cfloop index = "LoopCount" from="1" to="#form.num_genes#" step="1">

<cfset LegalProteinSequence_#loopcount# = 
"#REReplaceNoCase(form.ProteinSequence_#loopcount#,'[^()1acdefghiklmnpqrstvwyz 
]','','all')#">

... etc.

Invalid CFML construct found on line 47 at column 29.
ColdFusion was looking at the following text:
#

The CFML compiler was processing:

A cfset tag beginning on line 47, column 2.
A cfset tag beginning on line 47, column 2.

The error occurred in 
C:\inetpub\wwwroot\sttr2\orders\neworder_main_confirm.cfm: line 47
45 : <cfoutput>
46 : #loopcount# <cfabort>
47 : <cfset LegalProteinSequence_#loopcount# = 
"#REReplaceNoCase(form.ProteinSequence_loopcount,'[^()1acdefghiklmnpqrstvwyz 
]','','all')#">
48 :
49 :

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337586
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to