Hi Chris...
Just thought I'd mention this tip that I picked up from ColdFusion-master
Ben Forta at a developer conference a few weeks back....
'Try and avoid using lists. They are a lot slower than Array's or
Structures. They are easier to use, but at a cost to performance.'
Regards
Nick
At 10:56 4/04/00 -0400, you wrote:
>I always end up using lists rather than arrays, though a list can be thought
>of as a 1-dimensional array. So I would use a list of structures rather
>than an array of structures. I find Lists easier to create and maintain
>than arrays.
>
>Chris Evans
>[EMAIL PROTECTED]
>http://www.fuseware.com
>
>
>-----Original Message-----
>From: Emily B. Kim [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, April 04, 2000 10:39 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Help: Can arrays be used like queries
>
>
> > You can also use queries as arrays. For example, if I have a query
>called
> > "Articles" with a column named "TITLE", and I want the 5th
> > row, I can use Articles.Title[5].
>
>just a fyi, although you can use array syntax to reference queries,
>remember that queries are NOT arrays so you can't use the array
>functions on them.
>
> > I rarely see a need for arrays with CF, though other programmers seem to
>use
> > them for everything. I don't quite understand that. I've seen a lot of
> > programming, even custom tags, that translate native CF data elements into
> > arrays, when it is easier to use the native data element.
>
>arrays are very useful for passing information without having to write
>to the DB. think of use of an array of structures for a shopping cart.
>-emily
>----------------------------------------------------------------------------
>--
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in
>the body.
>
>
>------------------------------------------------------------------------------
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in
>the body.
===========================================
Nick Slay
Technical Director
Webbods Pty Ltd (ACN 086 160 189)
PO Box 4047
Copacabana
NSW 2251
Tel: 02 4381 0284
Mob: 0414 810284
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.