Re: checking for the existence of a dynamic variable

2008-10-14 Thread Scott Stewart
Thank you sir, that worked like a champ :) sas Azadi Saryev wrote: cfif structkeyexists(form, 'MGMT_HEADER_' i) Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Scott Stewart wrote: cfloop index=Counter from=#i# to=#structCount(session.eformadmin)# cfif

Re: checking for the existence of a dynamic variable

2008-10-14 Thread Peter Boughton
cfloop index=Counter from=#i# to=#structCount(session.eformadmin)# cfif #form[MGMT_HEADER_i]# is not cfset headerId = #form[MGMT_HEADER_i]#/ cfelse /cfif cfset i = i+1/ /cfloop What's up with that odd looping? :/ It seems like your code could be simplified... cfloop

checking for the existence of a dynamic variable

2008-10-14 Thread Scott Stewart
cfloop index=Counter from=#i# to=#structCount(session.eformadmin)# cfif #form[MGMT_HEADER_i]# is not cfset headerId = #form[MGMT_HEADER_i]#/ cfelse /cfif cfset i = i+1/ /cfloop Hey all, the above code returns the error Element MGMT_HEADER_2 is undefined in a Java

Re: checking for the existence of a dynamic variable

2008-10-14 Thread Scott Stewart
grinding code out quickly Peter Boughton wrote: cfloop index=Counter from=#i# to=#structCount(session.eformadmin)# cfif #form[MGMT_HEADER_i]# is not cfset headerId = #form[MGMT_HEADER_i]#/ cfelse /cfif cfset i = i+1/ /cfloop What's up with that odd looping? :/

Re: checking for the existence of a dynamic variable

2008-10-14 Thread Azadi Saryev
cfif structkeyexists(form, 'MGMT_HEADER_' i) Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Scott Stewart wrote: cfloop index=Counter from=#i# to=#structCount(session.eformadmin)# cfif #form[MGMT_HEADER_i]# is not cfset headerId = #form[MGMT_HEADER_i]#/ cfelse