Re: array help how do I do this?

2010-06-30 Thread Glyn Jackson
not an array issues must be to do with the upper-case conversion again, how do i get around that with... response['hotspots'] = [ { distance ="100",

Re: Array Help

2008-01-08 Thread Ian Skinner
Robert Harrison wrote: > 1. Look in the array to see if a value exists and, if so, return the key. > Not the most elegant solution, but dirt simple. searchValue = "13" key = ''; for (i=1;i lte arrayLen(myAry); i = i + 1) { if (myAry[i] = searchValue) { key = i; break;

Re: Array Help

2004-09-07 Thread KeAnne Hoeg
<br>     {<br> <br>     return true;<br> <br>     }<br> <br> //--><br> <br> <br> <br> <!--<br> <br> function  _CF_checkCFForm_2(_CF_this)<br> <br>     {<br> <br>     return true;<br> <

Re: Array Help

2004-09-07 Thread Charlie Griefer
Be easier to troubleshoot this if you could post the actual HTML from the browser. Not sure if this might be the problem...your tag isn't closed (no ">") ? ...also, parameterExists() has been deprecated since roughly CF 3 (somebody will likely correct me if i'm wrong there...but it's been a whil

RE: array help on a query insert loop

2003-09-19 Thread Michael Traher
You could carry on the way you are and simply or change your loop to a list loop so that the index item will hold each xlocator item. or if you wish to use arrays then take a look at the listToArray() function. HTH Michael Traher -Original Message- From: laritru [mailto:[EMAIL P

RE: Array Help - SOLVED

2002-09-25 Thread S . Isaac Dealey
> Yea, it was a stupid mistake. Not enough caffeine today. > -Original Message- > From: Adrian Lynch [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 25, 2002 4:10 PM > To: CF-Talk > Subject: RE: Array Help - SOLVED > I lost this thread half way through, but why

RE: Array Help - SOLVED

2002-09-25 Thread Tony Carcieri
Yea, it was a stupid mistake. Not enough caffeine today. -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 4:10 PM To: CF-Talk Subject: RE: Array Help - SOLVED I lost this thread half way through, but why do you need hot as a list and

RE: Array Help - SOLVED

2002-09-25 Thread Adrian Lynch
I lost this thread half way through, but why do you need hot as a list and an array? Ade -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: 25 September 2002 20:53 To: CF-Talk Subject: RE: Array Help - SOLVED You'll probably get better performance ( if

RE: Array Help - SOLVED

2002-09-25 Thread S . Isaac Dealey
You'll probably get better performance ( if only slightly ) from putting your outside your loop ... just because the cfml parser then only has to initiate and drop the cfoutput once instead of once for each iteration of your loop. Just 2c... > I figured it out. Just FYI: > > > > #Counter#

RE: Array Help

2002-09-25 Thread Mosh Teitelbaum
[EMAIL PROTECTED]] > Sent: Wednesday, September 25, 2002 2:49 PM > To: CF-Talk > Subject: RE: Array Help > > > by the time you get to here #ListGetAt(x, Counter)#, x is no longer a list > > Ade > > -Original Message- > From: Tony Carcieri [mailto:[EMAIL PROTECTE

Re: Array Help

2002-09-25 Thread S . Isaac Dealey
I'd recommend not using a loop on the action page ... change the structure of the form like this: checked> Then on the action page UPDATE mytable SET hot = CASE WHEN mykey IN (#form.hotitems#) THEN 1 ELSE 0 END WHERE mykey IN (#form.availableitems#) Shoul

RE: Array Help - SOLVED

2002-09-25 Thread Bryan Love
:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 12:01 PM To: CF-Talk Subject: RE: Array Help - SOLVED I figured it out. Just FYI: #Counter#: #ListGetAt(y, Counter)# -Original Message- From: Tony Carcieri [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 2:28 PM T

RE: Array Help

2002-09-25 Thread Bryan Love
x isn't a list - it's an array. You can't use listgetat() with arrays. try this instead: #Counter#: #x[Counter]# or even better, try this: #i# +---+ Bryan Love Macromedia Certified Professional Internet Application Developer Databas

RE: Array Help - SOLVED

2002-09-25 Thread Tony Carcieri
I figured it out. Just FYI: #Counter#: #ListGetAt(y, Counter)# -Original Message- From: Tony Carcieri [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 2:28 PM To: CF-Talk Subject: Array Help Hi everyone, I am developing a sales thing for our reps and I got yanked o

RE: Array Help

2002-09-25 Thread Adrian Lynch
by the time you get to here #ListGetAt(x, Counter)#, x is no longer a list Ade -Original Message- From: Tony Carcieri [mailto:[EMAIL PROTECTED]] Sent: 25 September 2002 19:28 To: CF-Talk Subject: Array Help Hi everyone, I am developing a sales thing for our reps and I got yanked off a

RE: Array Help?

2002-08-09 Thread Raymond Camden
, ColdFusion Jedi Master for Macromedia Email: [EMAIL PROTECTED] Yahoo IM : cfjedimaster "My ally is the Force, and a powerful ally it is." - Yoda > -Original Message- > From: Joe Eugene [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 09, 2002 12:21 PM > To: CF-Talk >

Re: Array Help?

2002-08-09 Thread Joe Eugene
CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, August 09, 2002 10:26 AM Subject: RE: Array Help? > > Whats the advantage of using a structure of arrays?? > > It may or may not be an advantage. When deciding what type of data > structure to use, you should always consider what your

RE: Array Help?

2002-08-09 Thread Kris Pilles
Thanks for all your help... -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 10:49 AM To: CF-Talk Subject: RE: Array Help? > > If you are completely new to structures, your best bet is > to read the > > docs. For a qu

RE: Array Help?

2002-08-09 Thread Raymond Camden
> > If you are completely new to structures, your best bet is > to read the > > docs. For a quickie... > > I found CFDUMP (or CF_DUMP or CFA_DUMP) invaluable in visualizing the > "structure" of structures. Until I had that tool I never > really grokked > structures at all. Sorry for the noise,

RE: Array Help?

2002-08-09 Thread Everett, Al
> If you are completely new to structures, your best bet is to read the > docs. For a quickie... I found CFDUMP (or CF_DUMP or CFA_DUMP) invaluable in visualizing the "structure" of structures. Until I had that tool I never really grokked structures at all. ___

RE: Array Help?

2002-08-09 Thread Raymond Camden
> Also Since im asking 1000 questions... Should I just be dropping > this data into a table instead of storing it in memory??? I > don't want > to eat up all the ram on the server ya know??? > I would say it depends on your site usage. Storing some user info in the application scope is n

RE: Array Help?

2002-08-09 Thread Raymond Camden
Hmm, lot's of things here, I'll comment in code. > How would I get the data out if I did that??? If you are completely new to structures, your best bet is to read the docs. For a quickie... #x.name# or #x["name"]# > > > > > Application.UsersInfo = StructNew(); > > > First, if you

RE: Array Help?

2002-08-09 Thread Raymond Camden
> Whats the advantage of using a structure of arrays?? It may or may not be an advantage. When deciding what type of data structure to use, you should always consider what your needs are. Ie, how do you plan on storing and using the data. In general, I don't often use 2d arrays because normally i

RE: Array Help?

2002-08-09 Thread Kris Pilles
bject: RE: Array Help? ere is my code. What your saying is that I put an array inside of the structure??? How would I get the data out if I did that??? Application.UsersInfo = StructNew(); user_cfid = Evaluate(CFID); user_info = Now(); user_Host = CGI.Remote_host; user

RE: Array Help?

2002-08-09 Thread Kris Pilles
Subject: RE: Array Help? You don't have to do anything to increase x. If you want to find the current length of Array, just use arraylen(). This code will add a new array to the end of the existing array: CF let's you populate arrays without popula

RE: Array Help?

2002-08-09 Thread Kris Pilles
and duplicate the cunctionality of Groopz.com by using CF & Java.. But I need to refine the session management piece first -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 10:02 AM To: CF-Talk Subject: RE: Array Help? You don't h

RE: Array Help?

2002-08-09 Thread Raymond Camden
You don't have to do anything to increase x. If you want to find the current length of Array, just use arraylen(). This code will add a new array to the end of the existing array: CF let's you populate arrays without populating every entity. So you can (b

Re: Array help?

2001-02-14 Thread Scott Weikert
Try using a structure, using the line number as the key, instead of an array. A bit more flexible IMHO. --Scott - Original Message - From: <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2001 4:09 PM Subject: Array help? > New to the list, new to the