Sometimes I like to create a structure of arrays, instead of an array of structures. This lets me reference the data in the familiar syntax of accessing CFQuery data....
structName.fieldName[rownumber] But if there is a possibility of needing more dimensions, I won't use this approach. On 5/23/07, Robert Rawlins - Think Blue <[EMAIL PROTECTED]> wrote: > Hello Guys, > > > > I'm looking for some advice on whether I should be using a 2 dimensional > array or a array of structs for this kind of thing. I'm looking to store a > list of users in an array, but also some other information on them, similar > to a virtual table I guess, like this. > > > > Name LastSeen Event > > Rob 01-01-2007 Emailing > > Dave 01-01-2007 News > > John 02-01-2007 Users > > Paul 03-01-2007 Emailing > > > > Now should i be creating an array of structs for this? With each element of > the array containing a structure with name, lastseen and event in it? Or > should I just use a two dimensional array? Is there any real benefit between > the two for performance? > > > > Or perhaps I use a struct of structs? So then I can do > Application.Userlist.Rob.LastSeen or something like that? Is it possible to > dynamically name a structure key? > > > > Thanks, > > > > Rob > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 by AdobeĀ® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279442 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

