i think something like
<cfset evaluate("stprops_pollingvote.answer" & "#i#") = "1"> might work. If
that doesn't, I think generally you need to use evaluate for something like
that. That's the only way I can think of to get something like that done
though.

Best,

Tomek

On Thu, Oct 23, 2008 at 8:02 PM, Marco van den Oever <
[EMAIL PROTECTED]> wrote:

>
> I loop over
>
> <cfset variables[ "stprops_pollingvote.answer" & "#i#" ] = "1">
>
> and when the selected form value is equal to the number in the index
> it sets the above item, so if option 1 was selected then
> stprops_pollingvote.answer1 is cfset to 1.
>
> Just read "You cannot use a dynamic variable when you create a
> structure implicitly." at cfm docs, so that implies you have to work
> with cfif statements and cfset the structure items static, or is there
> some other farcry trick available?
>
> On Oct 24, 1:52 am, Marco van den Oever <[EMAIL PROTECTED]>
> wrote:
> > I want to set up structure items by a loop:
> >
> > <cfset variables[ "stprops_pollingvote.answer" & "#i#" ] = "1">
> >
> > so this will result in:
> >
> > <cfset stprops_pollingvote.answer1 = "1"> ect etc
> >
> > this is however not working, as this is a part of a structure, do i
> > need it to create otherwise?
> >
> > Thanks
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to farcry-dev@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to