Dave,
> Thanks Paul.
>
> Here is the final code that produces the desired results:
>
> <cfloop list="#form.fieldnames#" index="i">
> <cfif ListFirst(i, "_") EQ "menuid">
> <cfset menuid = listlast(i, "_")>
>
> <cfoutput>Menuid: #menuid#, #Evaluate("form.menuid_" &
> menuid)#<br></cfoutput>
> </cfif>
> </cfloop>
>
> Is there any way of avoiding the use of Evaluate in a situation like
> this? I know it does not do well for performance but is
> there another way?
As far as the use of evaluate goes, it's not a huge deal. It only becomes a
big issue when you are doing a lot of it a lot of the time. Once or twice
in a page isn't going to cause a huge amount of problems with speed.
There really isn't much of a way around using evaluate anyway. How else do
you find out dynamically created variable names? You have to evaluate a
string...
Paul
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]