you da man!ta - I'll give this a go
-Original Message-
From: Bryan Love [mailto:[EMAIL PROTECTED]]
Sent: 26 April 2002 18:23
To: CF-Talk
Subject: RE: Dynamic Var names
cfset client.variable#url.test# = bla bla
cfoutput
#evaluate(client.variable url.test
I'm having a mind blank (well it is gone 6 on Friday).
Can you have dynamic var names?ie.g. you have a URL variable called test
which has a numeric value and you want to use this in the name of a client
var. e.g. test=1 and you want client.variable#url.test#.
I had some crazy idea
:[EMAIL PROTECTED]]
Sent: Friday, April 26, 2002 10:18 AM
To: CF-Talk
Subject: Dynamic Var names
I'm having a mind blank (well it is gone 6 on Friday).
Can you have dynamic var names?ie.g. you have a URL variable called test
which has a numeric value and you want to use this in the name
:[EMAIL PROTECTED]]
Sent: Friday, April 26, 2002 11:18 AM
To: CF-Talk
Subject: Dynamic Var names
I'm having a mind blank (well it is gone 6 on Friday).
Can you have dynamic var names?ie.g. you have a URL variable called test
which has a numeric value and you want to use this in the name
Where URL.Test=test
cfscript
SetVar('Client.' URL.Test,1)
/cfscript
Now #Client.Test=1#
var. e.g. test=1 and you want client.variable#url.test#.
__
This list and all House of Fusion resources hosted by CFHosting.com. The
Make that
SetVariable('Client.' URL.Test,1)
oops...
Where URL.Test=test
cfscript
SetVar('Client.' URL.Test,1)
/cfscript
Now #Client.Test=1#
var. e.g. test=1 and you want client.variable#url.test#.
__
Get the
Does anyone know how to set dynamic variable names?
Here's the situation.
For each product in a shopping cart, I need to pull up the applicable
shipping options and shipping charges and then create a number of vars which
I'll use to increment the total shipping charge for the whole order for
[mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 10:29 AM
To: [EMAIL PROTECTED]
Subject: Re: dynamic var names
Looks like your one of the few with good DNS.
Oh, and you can do this:
CFSET variable#id# = 5
OR
CFSET SetVariable('variable'id, 5)
- Original Message -
From
8 matches
Mail list logo