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.

Reply via email to