If you really wanted to give yourself an ulcer, you could use CF to modify the templates containing your CF array statements. You wouldn't really be able to use CF's array processing functions to do things like DeleteAt(). Overall, this could get seriously ugly in a multiuser environment.
If the real goal of having no "back-end" data is to avoid using an ODBC database, then you could fake it by using a small text file. Not a terrible solution if there are only a handful of items, although it's not really a good solution if there's much updateing of the data. Use CFFILE to read the file and populate your CF array. In both instances, make sure you're using CF locking extensively. Either way, in a moderately trafficked multiuser environment, this will be pretty inefficient. Consider also using CF query functions to build a query from your data instead of using an array. It may make looping over the data and other processing (query a query) a bit easiser. Jim ----- Original Message ----- From: "Douglas Brown" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Sunday, February 24, 2002 1:55 PM 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 > > > > > > > > > > > > > > ______________________________________________________________________ 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

