Thanks all.  Worked marvelously and I felt silly for asking, but just
couldn't think it thru this morning.

If I could pester the list for one more (rtfm I know, but the docs I
found were sparse),

<cfset my.loopcounter=0>
<cfloop
   list="#my.Fields#"
   index="FieldName">
<input
   type="Text"
   name="#FieldName#"
   value="#Evaluate(ListGetAt(my.DefaultValue,my.LoopCounter))#">
<cfset my.loopcounter=my.loopcounter+1>
</cfloop>

my.defaultvalue is another list whose position I'm getting via the
loopcounter and value is coming from evaluate()ing the result of the
listgetat()


On Tue, 28 Sep 2004 10:07:00 -0700, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> use form[theFormField] instead.
>
> cheers,
> barneyb
>
> On Tue, 28 Sep 2004 09:52:09 -0700, Matt Robertson
>
>
> <[EMAIL PROTECTED]> wrote:
> > How would I go about getting rid of evaluate() in this loop?  I'm
> > having a brainlock.  must have gotten up too early today.
> >
> > <cfloop
> >        list="#form.FieldNames#"
> >        index="TheFormField">
> >        <cfscript>
> >        if (len(Evaluate(TheFormField))) {
> >                my.FieldValue=Evaluate(TheFormField);
> >        }
> >        </cfscript>
> > </cfloop>
> >
> > --
> > --Matt Robertson--
> > MSB Designs, Inc.
> > mysecretbase.com
> >
> --
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.com
>
> I currently have 6 GMail invites for the taking
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to