dont forget, you can also use
isdefined("form.question" & questionnumber)
as in this example:
<cfparam name="form.question4" default="why did the chicken cross the road">
<cfloop from="1" to="10" index="i">
<cfoutput>#i#:</cfoutput>
<cfif isDefined("form.question" & i)>
<cfoutput>it exists<br>#form["question" & i]#<br></cfoutput>
<cfelse>
<cfoutput>no exist<br></cfoutput>
</cfif>
</cfloop>
At 10:45 AM 5/1/2002 -0300, you wrote:
>At 09:44 AM 01/05/02 -0400, Raymond Camden wrote:
> >You can either do:
> >
> >isDefined("form.question#questionnumber#")
> >
> >or
> >
> >structKeyExists(form,"question#questionnumber#")
> >
> >I prefer the first method.
>
>Thanks Raymond. You are saving me from using evaluate again. I really
>appreciate all your help.
>
>T
>
>
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists