But if this is insistent, my suggestion then is: 1) Scope the array out to client.array so that way you only generate the array once per user (or application.arrayname if it crosses users and can be used universally) 2) Get cozy with the ArrayDeleteAt(), ArraySort(), ArrayAppend(), ArrayPrepend() functions and the other ones, they're going to become your best friend they will at least work to the first dimension of the array but will go no further. So if the array for example is:
1) Car a) Toyota Camry 2) Truck b) Chevrolet Suburban If you apply ArraySort() you can sort for "Car" and "Truck" but not for "Toyota Camry" and "Chevy Suburban" unless you try and write a special sort routine (and that will get messy) Hope this helps some. Gregory Harris [EMAIL PROTECTED] -----Original Message----- From: Douglas Brown [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 24, 2002 12:55 PM To: CF-Talk Subject: Re: Array? Is this possible? Well this is a sub-contract job, and he originally said he didnt want no back-end data. But re-sorting the array and stuff would be a real bitch otherwise. "Success is a journey, not a destination!!" Doug Brown ----- Original Message ----- From: "Steve Oliver" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Sunday, February 24, 2002 12:32 PM Subject: RE: Array? Is this possible? > So your saying the client is telling you to use arrays? > > Not that it's any of my business, but you're the developer, the clients > usually don't care (and usually don't know any better) as long as it > works, right? > > _____________________________ > steve oliver > senior internet developer > atnet solutions, inc. > http://www.atnetsolutions.com > > > -----Original Message----- > From: Douglas Brown [mailto:[EMAIL PROTECTED]] > Sent: Sunday, February 24, 2002 3:46 PM > To: CF-Talk > Subject: Re: Array? Is this possible? > > > Yeah well that is what I am trying to talk the client into. I prefer > database, but it is up to him. > > > > > > > > > > "Success is a journey, not a destination!!" > > > > Doug Brown > ----- Original Message ----- > From: "Gregory Harris" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Sunday, February 24, 2002 11:36 AM > Subject: RE: Array? Is this possible? > > > > Why use an Array to hold this?? Couldn't a database or File > (retrieved with > > CFFILE) do this a lot better? > > > > > > Gregory Harris > > [EMAIL PROTECTED] > > > > -----Original Message----- > > From: Douglas Brown [mailto:[EMAIL PROTECTED]] > > Sent: Sunday, February 24, 2002 10:49 AM > > To: CF-Talk > > Subject: Array? Is this possible? > > > > > > I would like to be able to update an array on the fly so to speak. Is > it > > possible to do a arrayAppend,arrayDeleteAt etc..etc.. from a form? > > > > I have the following array that is not populated dynamically and > updates > > will be made quite often. The array could have up to 60 elements. Any > > insight would be helpful. > > > > <CFSCRIPT> > > classes = ArrayNew(2); > > classes[1][1] = 'title1'; > > classes[1][2] = 'location1'; > > classes[1][3] = 'date1'; > > classes[2][1] = 'title2'; > > classes[2][2] = 'location2'; > > classes[2][3] = 'date2'; > > classes[3][1] = 'title3'; > > classes[3][2] = 'location3'; > > classes[3][3] = 'date3'; > > </CFSCRIPT> > > > > > > > > > > > > "Success is a journey, not a destination!!" > > > > > > > > Doug Brown > > > > > > > > ______________________________________________________________________ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona 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