3-dimensional array

2001-02-05 Thread Ryan Farrell

How do I  a 3-dimensional array?

Thanks,

Ryan


Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: 3-dimensional array

2001-02-05 Thread Phoeun Pha






-Original Message-
From: Ryan Farrell [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 12:24 PM
To: CF-Talk
Subject: 3-dimensional array


How do I  a 3-dimensional array?

Thanks,

Ryan


Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: 3-dimensional array

2001-02-05 Thread Kevin Schmidt



Kevin
- Original Message -
From: "Ryan Farrell" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, February 05, 2001 12:24 PM
Subject: 3-dimensional array


> How do I  a 3-dimensional array?
>
> Thanks,
>
> Ryan
>
>
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: 3-dimensional array

2001-02-05 Thread Philip Arnold - ASP

> How do I  a 3-dimensional array?

Why not use Structures within the array?

That way you get get away with a 2D array with a structure in each

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they 
are addressed. If you have received this email in error please notify 
the system manager.
**


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: 3-dimensional array

2001-02-05 Thread Jeremy Allen

Think of it as a 3 dimensional box. 
   +-+
  /  /|
 /  / | 
+--+  |
|  |  |
|  |  |
|  | /
+--+/

Hehe

Okay here is a example... not that you 
would but you could.

If you think of a query as a two dimesonal array.

Query1(z)
Row1(y)
Col1(x)
Col2
Col3
Col4
Col5
Col6
Row2
Col1
Col2
Col3
Col4
Col5
Col6
Query2
Row1
Col1
Col2
Col3
Col4
Col5
Col6
Row2
Col1
Col2
Col3
Col4
Col5
Col6

As an array
arrJunk[1][1] = Row one column one
arrJunk[2][3] = Row two column three.. etc. etc.

Now say you want this single array to represent multiple
queries at once.

so arrJunk[1][2][4] = Query1, Row2, Column4
or arrJunk[2][2][4] = Query2, Row2, Column4

Now for say a four dimensional array... hehehe stay with me!!
Time: 8:00pm(eeek)
Query1(z)
Row1(y)
Col1(x)
Col2
Col3
Col4
Col5
Col6
Row2
Col1
Col2
Col3
Col4
Col5
Col6
Query2
Row1
Col1
Col2
Col3
Col4
Col5
Col6
Row2
Col1
Col2
Col3
Col4
Col5
Col6
Time: 9:00pm
Query1
Row1
Col1
Col2
Col3
Col4
Col5
Col6
Row2
Col1
Col2
Col3
Col4
Col5
Col6
Query2
Row1
Col1
Col2
Col3
Col4
Col5
Col6
Row2
Col1
Col2
Col3
Col4
Col5
Col6
So (this would be a bad way to represent your data...
but if you wanted too... you could

Okay, so say you wanted 9pm Query2 Row2 Col5

arrJunk[2][2][2][5] = 9pm, query2, row2, column5

Hehe, so yes the practical applications of this kind
of thing are few and far between but there are some very 
valid representations such as mapping out objects
in 3D space (of course you wouldnt really use an
array then.. but anyways) it does have
uses... but if you end up with a 3D array you most
likely do not need it.

Anyhow... I hope I did not hurt anyones head.

Jeremy Allen
elliptIQ Inc.



>-Original Message-
>From: Phoeun Pha [mailto:[EMAIL PROTECTED]]
>Sent: Monday, February 05, 2001 1:35 PM
>To: CF-Talk
>Subject: RE: 3-dimensional array
>
>
>
>
>
>
>
>-Original Message-
>From: Ryan Farrell [mailto:[EMAIL PROTECTED]]
>Sent: Monday, February 05, 2001 12:24 PM
>To: CF-Talk
>Subject: 3-dimensional array
>
>
>How do I  a 3-dimensional array?
>
>Thanks,
>
>Ryan
>
>
>Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>
>
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists