Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
CF-Talk
Cold Fusion - Technical
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Cold Fusion :
product's home
product's list home
 
  Archived TallyList / CF-Talk: 
Subject: Re: dynamically naming variables
Sean Renet (59p/+0r)     Posted: Wednesday 20 Dec 2000
This post: 108 views, +0 rating

by this do you mean.....

<cfloop index="i" to="1" from="#listlen(mylist)#"> <cfset "myvar_#i#" = listgetat(mylist,i)> </cfloop>

----- Original Message ----- From: "Jay Brushett" <jay@zeddcomm.com> To: "CF-Talk" <cf-talk@houseoffusion.com> Sent: Wednesday, December 20, 2000 7:54 AM Subject: dynamically naming variables

> > Hi, > > I need to use the Evaluate function to dynamically name variables in a > <cfloop>. > Using the function on the right hand side of a cfset works fine of course > but CF won't let me use it on the left hand side (i.e. the variable name). > > Any ideas would be greatly appreciated. > > TIA, > > Jay > < > < > < > < > < Strategy ~ Creativity ~ Technology > < > < > < > < > < > > > Jay Brushett > jay@zeddcomm.com > > Developer > > < ZeddComm Inc. > > 2nd Floor, The Tower | 100 Signal Hill Road > St. John's, Newfoundland | Canada A1A 1B3 > Main: 709.570.5669 | Fax: 709.739.9003 > Web: www.zeddcomm.com > < > < > < > < St. John's ~ New York ~ Newport Beach ~ Ottawa > < > < > < > > > > >


Similar Subject Line Posts (+/- two weeks of this post)
Re: dynamically naming variables  21 Dec 2000   (95 v/ +0 r)
Re: dynamically naming variables  21 Dec 2000   (99 v/ +0 r)
Re: dynamically naming variables  21 Dec 2000   (82 v/ +0 r)
RE: dynamically naming variables  20 Dec 2000   (93 v/ +0 r)
Re: dynamically naming variables  20 Dec 2000 (this post)   (108 v/ +0 r)
RE: dynamically naming variables  20 Dec 2000   (97 v/ +0 r)
RE: dynamically naming variables  20 Dec 2000   (235 v/ +1 r)
dynamically naming variables  20 Dec 2000   (107 v/ +0 r)
 

Send a reply to the CF-Talk list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000