Maybe you are looking for something akin to the following?
#Form[MemberIndex & "FirstName"]#
#Form[MemberIndex & "MiddleName"]#
#Form[MemberIndex & "LastName"]#
Of course, if you are referencing Session vars instead of Form vars, replace
appropriately. :)
Does this work in 4.0? I know it does in 4.5, but I seem to remember 4.0
having issues with it? Can anyone back me up on this? I know that even in
4.5 you still can't do it with Client vars (lame!) so you have to fall back
to the old Evaluate() method (astoundingly lame!).
-Rick
-----Original Message-----
From: Charles A. Lee [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 14, 2000 4:42 PM
To: [EMAIL PROTECTED]
Subject: Re: dynamic variable label creation
At 10:55 AM 9/14/00 , you wrote:
>... creating a form on the fly,
>create session variables like this:
>
><cfloop index="priority_label" list="#fieldnames#">
>...[snip]
></cfloop>
>...
Dynamic variables must be a common problem. I tried coding this as a
variable within a variable and it didn't work.
<CFLOOP INDEX="memberindex" FROM="2" TO="#val(memberloop)#" STEP="1">
Member #memberindex# Name: #Member###memberindex###FirstName#
#Member###memberindex###MiddleName#. #Member###memberindex###LastName#
The compiler gagged on the non-existent "Member" variable (center of second
line before ###) instead of concatenating the variable's three pieces to
read it as something like #Member14FirstName#
So what's the secret syntax, gang? 8-)
Charles A. Lee
http://www.psn.net/~calee
Webmaster, Tucson Computer Society
http://www.aztcs.org
===============================
= For a real sponge cake, =
= borrow all the ingredients. =
===============================
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.