Can someone help me make this work?
I'm not sure how to explain it clearly, so I'm hoping the code/comments make
sense
!--- assign show variable ---
CFSET show = userID
!--- assign sub value to value set above ---
CFSET evaluate('#show#')= allUsers
!--- debugging output ---
CFOUTPUT
first
Email: [EMAIL PROTECTED]
Yahoo IM : morpheus
My ally is the Force, and a powerful ally it is. - Yoda
-Original Message-
From: Louis Klepner [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 4:34 PM
To: CF-Talk
Subject: assigning a value to a dynamic variable?
Can someone
Actually, there is a shorthand for this:
change:
cfset Evaluate('#show#') = allUsers
to:
cfset #show# = allUsers
- Original Message -
From: Raymond Camden [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, March 01, 2002 2:36 PM
Subject: RE: assigning a value to a dynamic
Ahh- Very good! Thank you!
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Raymond
Camden
Sent: Friday, March 01, 2002 4:37 PM
To: CF-Talk
Subject: RE: assigning a value to a dynamic variable?
To set a dynamic variable, use setVariable
]
Sent: Friday, March 01, 2002 2:36 PM
Subject: RE: assigning a value to a dynamic variable?
| To set a dynamic variable, use setVariable:
|
| cfset show = userID
| cfset setVariable(show,allUsers)
|
| You will still need evaluate to display it though
PM
| To: CF-Talk
| Subject: assigning a value to a dynamic variable?
|
|
| Can someone help me make this work?
| I'm not sure how to explain it clearly, so I'm hoping the
| code/comments make
| sense...
|
| !--- assign show variable ---
| CFSET show = userID
6 matches
Mail list logo