and this should hold true for the other three variables po_, role_ and year_

here's the loop again with the suggested changes

For (i=1;i LTE Form.PE_Counter; i=i+1)
           
                 if(StructKeyExists(FORM,'play_'&i)){
                    session.NODA09_formStruct['play_'&i] = form['play_'&i];
                   
                }
                if(StructKeyExists(FORM,'po_'&i)){
                    session.NODA09_formStruct['po_'&i] = form['po_'&i];
                       
                }
                if(StructKeyExists(FORM,'role_'&i)){
                    session.NODA09_formStruct['role_'&i] = form['role_'&i];
                       
                }
                if(StructKeyExists(FORM,'year_'&i)){
                    session.NODA09_formStruct['year_'&i] = form['year_'&i];
                       
                }

it seems to stop after the first if statement, even when the key/value 
pair exists in FORM

Matt Quackenbush wrote:
> session.NODA09_formStruct['play_' & i] = form['play_' & i];
>
>
> On Sun, Dec 21, 2008 at 11:16 AM, Scott Stewart wrote:
>
>   
>>                    session.NODA09_formStruct.play_[i] = form[play_[i]];
>>
>>     
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317044
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to