RE: Help: Can arrays be used like queries

2000-04-08 Thread Emily B. Kim
Chris Evans wrote: 1) I don't use just lists. I just tend to use lists rather than arrays. I love using structures :). 3) I'm getting to run some speed tests to prove Nick's comment about speed increases of arrays over lists. That is a good reason to use arrays over lists. sorry for the

RE: Help: Can arrays be used like queries

2000-04-05 Thread Chris Evans
that creates a lot of overhead. Chris Evans [EMAIL PROTECTED] http://www.fuseware.com -Original Message- From: Emily B. Kim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 05, 2000 12:14 AM To: [EMAIL PROTECTED] Subject: RE: Help: Can arrays be used like queries Hopefully not any

RE: Help: Can arrays be used like queries

2000-04-04 Thread Chris Evans
David, 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]. I rarely see a need for arrays with CF, though other programmers seem to use them for everything. I don't quite

Re: Help: Can arrays be used like queries

2000-04-04 Thread Emily B. Kim
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

RE: Help: Can arrays be used like queries

2000-04-04 Thread Chris Evans
-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 na

RE: Help: Can arrays be used like queries

2000-04-04 Thread Nick Slay
PROTECTED] Subject: RE: Help: Can arrays be used like queries 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

RE: Help: Can arrays be used like queries

2000-04-04 Thread Emily B. Kim
Hopefully not any different than the way you would do it in an array. In your example below, I would have a structure for Product 1, a structure for Product 2, and so on. I would also have an ItemInYourBag structure, with the key being the product ID and the value being the quantity. If the