RE: Dynamic Var names
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 #evaluate("client.variable" & url.test)# or #evaluate("client.variable#url.test#")# +---+ Bryan Love Macromedia Certified Professional Internet Application Developer Database Analyst Telecommunication Systems [EMAIL PROTECTED] +---+ "...'If there must be trouble, let it be in my day, that my child may have peace'..." - Thomas Paine, The American Crisis -Original Message- From: Andy Ewings [mailto:[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 of a client var. e.g. test=1 and you want client.variable#url.test#. I had some crazy idea that you may be able to do this using the evaluate or/and the Delay Evaluation functions -- Andy Ewings Director Thoughtbubble Ltd http://www.thoughtbubble.net -- United Kingdom http://www.thoughtbubble.net Tel: +44 (0) 20 7387 8890 -- New Zealand http://www.thoughtbubble.co.nz/ Tel: +64 (0) 9 419 4235 -- The information in this email and in any attachments is confidential and intended solely for the attention and use of the named addressee(s). Any views or opinions presented are solely those of the author and do not necessarily represent those of Thoughtbubble. This information may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority. If you are not the intended recipient, you are not authorised to disclose, copy, distribute, or retain this message. Please notify us on +44 (0)207 387 8890. __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Dynamic Var names
Make that SetVariable('Client.' & URL.Test,1) oops... > Where URL.Test="test" > > > SetVar('Client.' & URL.Test,1) > > > Now #Client.Test=1# > > > var. e.g. test=1 and you want client.variable#url.test#. > > > __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Dynamic Var names
Where URL.Test="test" SetVar('Client.' & URL.Test,1) 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 place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Dynamic Var names
Like so: OR I'm told the first method is a little quicker, and it's obviously less typing, and easier to read (in my opinion). Shawn Grover -Original Message- From: Andy Ewings [mailto:[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 of a client var. e.g. test=1 and you want client.variable#url.test#. I had some crazy idea that you may be able to do this using the evaluate or/and the Delay Evaluation functions -- Andy Ewings Director Thoughtbubble Ltd http://www.thoughtbubble.net -- United Kingdom http://www.thoughtbubble.net Tel: +44 (0) 20 7387 8890 -- New Zealand http://www.thoughtbubble.co.nz/ Tel: +64 (0) 9 419 4235 -- The information in this email and in any attachments is confidential and intended solely for the attention and use of the named addressee(s). Any views or opinions presented are solely those of the author and do not necessarily represent those of Thoughtbubble. This information may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority. If you are not the intended recipient, you are not authorised to disclose, copy, distribute, or retain this message. Please notify us on +44 (0)207 387 8890. __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Dynamic Var names
#evaluate("client.variable" & url.test)# or #evaluate("client.variable#url.test#")# +---+ Bryan Love Macromedia Certified Professional Internet Application Developer Database Analyst Telecommunication Systems [EMAIL PROTECTED] +---+ "...'If there must be trouble, let it be in my day, that my child may have peace'..." - Thomas Paine, The American Crisis -Original Message- From: Andy Ewings [mailto:[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 of a client var. e.g. test=1 and you want client.variable#url.test#. I had some crazy idea that you may be able to do this using the evaluate or/and the Delay Evaluation functions -- Andy Ewings Director Thoughtbubble Ltd http://www.thoughtbubble.net -- United Kingdom http://www.thoughtbubble.net Tel: +44 (0) 20 7387 8890 -- New Zealand http://www.thoughtbubble.co.nz/ Tel: +64 (0) 9 419 4235 -- The information in this email and in any attachments is confidential and intended solely for the attention and use of the named addressee(s). Any views or opinions presented are solely those of the author and do not necessarily represent those of Thoughtbubble. This information may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority. If you are not the intended recipient, you are not authorised to disclose, copy, distribute, or retain this message. Please notify us on +44 (0)207 387 8890. __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
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 of a client var. e.g. test=1 and you want client.variable#url.test#. I had some crazy idea that you may be able to do this using the evaluate or/and the Delay Evaluation functions -- Andy Ewings Director Thoughtbubble Ltd http://www.thoughtbubble.net -- United Kingdom http://www.thoughtbubble.net Tel: +44 (0) 20 7387 8890 -- New Zealand http://www.thoughtbubble.co.nz/ Tel: +64 (0) 9 419 4235 -- The information in this email and in any attachments is confidential and intended solely for the attention and use of the named addressee(s). Any views or opinions presented are solely those of the author and do not necessarily represent those of Thoughtbubble. This information may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority. If you are not the intended recipient, you are not authorised to disclose, copy, distribute, or retain this message. Please notify us on +44 (0)207 387 8890. __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: dynamic var names
Yes - my provider's DNS servers are lightning fast. OK - this solves one problem, but not the 2nd part of the problem which is that I need to increment the shipping costs. I loop through a list of product ids first. While in the loop, I do a lookup to the shipping options lookup table for the product in the current step of the loop. The result is between 1 and 5 or so different shipping options (costs). Then the loop continues to the next product. So basically what I need to do is this Check for the existence of "shipping_cost#currentrow#". If the var exists, increment it with the current shipping cost for the current product. Otherwise set the var with the current shipping cost. At the end, I should have a certain number of vars based upon the available shipping methods. Does that make sense? ---mark Mark Warrick - Fusioneers.com Personal Email: [EMAIL PROTECTED] Business Email: [EMAIL PROTECTED] Phone: 714-547-5386 Efax: 801-730-7289 Personal URL: http://www.warrick.net Business URL: http://www.fusioneers.com ICQ: 125160 / AIM: markwarric > -Original Message- > From: Michael Dinowitz [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: > > OR > > > > - Original Message - > From: "Mark Warrick" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Monday, June 18, 2001 1:23 PM > Subject: dynamic var names > > > > 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 > all > > items and all possible shipping methods. > > > > ---mark > > > > > > Mark Warrick - Fusioneers.com > > Personal Email: [EMAIL PROTECTED] > > Business Email: [EMAIL PROTECTED] > > Phone: 714-547-5386 > > Efax: 801-730-7289 > > Personal URL: http://www.warrick.net > > Business URL: http://www.fusioneers.com > > ICQ: 125160 / AIM: markwarric > > > > > > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
dynamic var names
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 all items and all possible shipping methods. ---mark Mark Warrick - Fusioneers.com Personal Email: [EMAIL PROTECTED] Business Email: [EMAIL PROTECTED] Phone: 714-547-5386 Efax: 801-730-7289 Personal URL: http://www.warrick.net Business URL: http://www.fusioneers.com ICQ: 125160 / AIM: markwarric ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists