> 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.
<cfset "LegalProteinSequence_#loopcount#" = ...>
or
<cfset setVariable("LegalProteinSequence_#loopcount#", ...)>
That said, you really don't need to do this sort of thing nowadays,
with arrays, etc.
<cfset LegalProteinSequence = arrayNew(1)>
<cfset LegalProteinSequence[loopcount] = ...>
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:337588
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm