Re: arrays and looping around

2010-09-29 Thread Rick Colman
so, do I need to declare an array in advance, or is this implicit. so, I guess this does not work either: cfset LegalProteinSequence_#LoopCount# = ... On 9/27/2010 10:10 PM, Ian Skinner wrote: On 9/27/2010 7:37 PM, Michael Grant wrote: #form['ExpOrg_ID_' loopCount]# A.K.A. Array

Re: arrays and looping around

2010-09-29 Thread Dave Watts
 so, do I need to declare an array in advance, or is this implicit. Existing scopes (Form, Url, Variables, etc) can always be treated this way. so, I guess this does not work either: cfset LegalProteinSequence_#LoopCount# =  ... I gave you several examples of this in another thread:

RE: arrays and looping around

2010-09-29 Thread Bobby Hartsfield
[LegalProteinSequence_#LoopCount#] = ... cfset variables[LegalProteinSequence_ LoopCount] = ... .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Rick Colman [mailto:rcol...@cox.net] Sent: Tuesday, September 28, 2010 3:42 PM To: cf-talk Subject: Re: arrays

Re: arrays and looping around

2010-09-29 Thread Michael Grant
Another way: setVariable(LegalProteinSequence_ loopcount, this-is-a-value); On Tue, Sep 28, 2010 at 3:42 PM, Rick Colman rcol...@cox.net wrote: so, do I need to declare an array in advance, or is this implicit. so, I guess this does not work either: cfset

Re: arrays and looping around

2010-09-27 Thread Michael Grant
#form['ExpOrg_ID_' loopCount]# On Mon, Sep 27, 2010 at 10:29 PM, Rick Colman rcol...@cox.net wrote: I can't seem to get this working, and it should not be that tough? Here what I am trying to do: * get the number of form variables coming in * loop through the number of variables

Re: arrays and looping around

2010-09-27 Thread Ian Skinner
On 9/27/2010 7:37 PM, Michael Grant wrote: #form['ExpOrg_ID_' loopCount]# A.K.A. Array Notation and can be applied to any variable scope, not just the form scope, though that is probably the most common. ~| Order the