*sigh* you may wish to do that, if this Array gets too large, you'll be taking up scads of system memory, think this:
1 Array created locally per user at x dimensions x amount of users * one byte per character that these arrays will use So: 1 array holding say 1000 bytes of information * 50 users in the site 50,000 bytes of data or approx 48kb more of memory your system will need. While this may not seem like much, this is just the small application, I have no idea how big this array could get or how many users will be using this. Plus we have more problems: 1) CPU overhead in re-creating and re-creating said array (assuming locally scoped) 2) Any additional overhead/memory cold fusion uses in arrays that I'm not aware of 3) Additional complexity and readability problems of this kind of code Get the idea...use CFQUERY and cache the information or at least CFFILE the information and load into the array that way we eliminate the complexity and readibility issues somewhat (if I need to change the values I just modify the text file). Use this as ammo for your client I hope it works out :-) Gregory Harris [EMAIL PROTECTED] -----Original Message----- From: Douglas Brown [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 24, 2002 12: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 > > > ______________________________________________________________________ Why Share? Dedicated Win 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=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

