>- see footer for list info -<
Yup, array notation.
Evaluate() isn't so bad, I tend not to use it as I prefer array notation, I
think it reads better.
It would be useful if the scope could be one of many:
Evaluate("someVar" & i)
would work for both FORM, URL, not tested it mind, where as:
SCOPE["someVar" & i]
wouldn't.
It also works for dynamic statements. A form field collects data like:
2 * 10 / 2 - 1 + 121212
and then in the action page:
Evaluate(FORM.yourEquation)
Ade
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Richard Lovelock
Sent: 27 May 2005 18:18
To: Coldfusion Development
Subject: Re: [CF-Dev] Evaluating
>- see footer for list info -<
Does this particular notation have a name or term used to describe it?
On 5/27/05, Kerry <[EMAIL PROTECTED]> wrote:
> <cfset coming1 = "eval">
> <cfset coming2 = "uate">
> <cfset coming3 = " is ">
> <cfset coming4 = "nasty">
>
> <cfoutput>
> <cfloop from="1" to="4" index="i">
> #variables["coming"&i]#
> </cfloop>
> </cfoutput>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Richard Lovelock
> Sent: 27 May 2005 16:16
> To: cfdev
> Subject: [CF-Dev] Evaluating
>
>
> >- see footer for list info -<
> Guys
>
> I've had a memory blank and need help...
>
> If I've got a list of variables called 'coming1, coming2, coming3,
> coming4' etc etc
>
> how do i loop round and check the value of each one: I was trying to
> do something like the following but it isn't outputting anything:
>
> <cfloop from="1" to="28" index="i"?
> <cfoutput>Value is: #evaluate("coming#i#")#</cfoutput>
> </cfloop>
>
> What do i need to do?
>
> --
> Richard Lovelock
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.2.0 - Release Date: 27/05/2005
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<