Re: 5d array ( counting number of elements )

2003-11-30 Thread Tom Kitta
>BTW I did a CFDUMP on the array and was suprised to see that CFMX created a 
>3d array with two structures!!!

Yes, this is what you get when trying to create a 5D array on CFMX. It will create for you structures automatically.

TK

>Welcome to the list!  More information on your problem would be useful.
>
>How did you nest your arrays to get five dimensional arrays (CF only
>supports 3 dimensional arrays directly)?  What version of CF are we
>talking about?
>
>What error are you getting?  Are you sure that the last element is, in
>fact, an array (have you run an IsArray() on it to be sure)?
>
>I would do that first (test for the existence of the array) first - also
>you may try CFDUMPing the array to examine how it's being
>constructed/viewed by CF.
>
>I'm curious tho' - why use a 5 dimensional array?  I've just never heard
>of a problem that needed one.
>
>(You'll find this helpful. but we're also downright inquisitive.)
>
>Jim Davis
>
>-Original Message-
>From: Dan Farmer [mailto:[EMAIL PROTECTED]
>Sent: Sunday, November 30, 2003 12:55 PM
>To: CF-Talk
>Subject: 5d array ( counting number of elements )
>
>Hi Everyone, I'm new to the list.
>
>First question.. I have a five dimensional array... I want to get the
>number
>of items located in the last array element. How do I do this..?
>
>in the example below you see there are three elements at the last
>position.
>I've tried  but that throws errors after
>the
>third array element.
>
>aExample[1][2][1][1][1] = "blah"
>aExample[1][2][1][1][2] = "blah2"
>aExample[1][2][1][1][3] = "blah3"
>
>_   __
>Daniel Farmer
>Web Developer Consultant
>P: 613.284.1684
>
>
>
>   _
>
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: 5d array ( counting number of elements )

2003-11-30 Thread Dan Farmer
I'm not really getting any errors... just I find my application really slow. 
( now I realize that perhaps I could forego using the array at all ). So now 
( I'm going to redesign this part of the app )... but what if I did want to 
count the number of elements?

BTW I did a CFDUMP on the array and was suprised to see that CFMX created a 
3d array with two structures!!!

Here's how I did it..



>Welcome to the list!  More information on your problem would be useful.
>
>How did you nest your arrays to get five dimensional arrays (CF only
>supports 3 dimensional arrays directly)?  What version of CF are we
>talking about?
>
>What error are you getting?  Are you sure that the last element is, in
>fact, an array (have you run an IsArray() on it to be sure)?
>
>I would do that first (test for the existence of the array) first - also
>you may try CFDUMPing the array to examine how it's being
>constructed/viewed by CF.
>
>I'm curious tho' - why use a 5 dimensional array?  I've just never heard
>of a problem that needed one.
>
>(You'll find this helpful. but we're also downright inquisitive.)
>
>Jim Davis
>
>-Original Message-
>From: Dan Farmer [mailto:[EMAIL PROTECTED]
>Sent: Sunday, November 30, 2003 12:55 PM
>To: CF-Talk
>Subject: 5d array ( counting number of elements )
>
>Hi Everyone, I'm new to the list.
>
>First question.. I have a five dimensional array... I want to get the
>number
>of items located in the last array element. How do I do this..?
>
>in the example below you see there are three elements at the last
>position.
>I've tried  but that throws errors after
>the
>third array element.
>
>aExample[1][2][1][1][1] = "blah"
>aExample[1][2][1][1][2] = "blah2"
>aExample[1][2][1][1][3] = "blah3"
>
>_   __
>Daniel Farmer
>Web Developer Consultant
>P: 613.284.1684
>
>
>
>   _
>
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: 5d array ( counting number of elements )

2003-11-30 Thread Jim Davis
Welcome to the list!  More information on your problem would be useful.

 
How did you nest your arrays to get five dimensional arrays (CF only
supports 3 dimensional arrays directly)?  What version of CF are we
talking about?

 
What error are you getting?  Are you sure that the last element is, in
fact, an array (have you run an IsArray() on it to be sure)?

 
I would do that first (test for the existence of the array) first - also
you may try CFDUMPing the array to examine how it's being
constructed/viewed by CF.

 
I'm curious tho' - why use a 5 dimensional array?  I've just never heard
of a problem that needed one.

 
(You'll find this helpful. but we're also downright inquisitive.)

 
Jim Davis

 
-Original Message-
From: Dan Farmer [mailto:[EMAIL PROTECTED] 
Sent: Sunday, November 30, 2003 12:55 PM
To: CF-Talk
Subject: 5d array ( counting number of elements )

 
Hi Everyone, I'm new to the list.

First question.. I have a five dimensional array... I want to get the
number 
of items located in the last array element. How do I do this..?

in the example below you see there are three elements at the last
position. 
I've tried  but that throws errors after
the 
third array element.

aExample[1][2][1][1][1] = "blah"
aExample[1][2][1][1][2] = "blah2"
aExample[1][2][1][1][3] = "blah3"

_   __
Daniel Farmer
Web Developer Consultant
P: 613.284.1684

  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: 5d array ( counting number of elements )

2003-11-30 Thread Dan Farmer
Your question made me realize that perhaps I don't even need to use the 
array...no wonder my app was so slow...

oh well thanks :)

>Hi Everyone, I'm new to the list.
>
>First question.. I have a five dimensional array... I want to get the 
>number
>
>of items located in the last array element. How do I do this..?
>
>in the example below you see there are three elements at the last position.
>I've tried  but that throws errors after 
>the
>
>third array element.
>
>aExample[1][2][1][1][1] = "blah"
>aExample[1][2][1][1][2] = "blah2"
>aExample[1][2][1][1][3] = "blah3"
>
>_   __
>Daniel Farmer
>Web Developer Consultant
>P: 613.284.1684
>
>
>   _
>
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: 5d array ( counting number of elements )

2003-11-30 Thread Michael T. Tangorre
Quick question what are you using a 5 dimensional array for?

  _  

From: Dan Farmer [mailto:[EMAIL PROTECTED] 
Sent: Sunday, November 30, 2003 12:55 PM
To: CF-Talk
Subject: 5d array ( counting number of elements )

Hi Everyone, I'm new to the list.

First question.. I have a five dimensional array... I want to get the number

of items located in the last array element. How do I do this..?

in the example below you see there are three elements at the last position. 
I've tried  but that throws errors after the

third array element.

aExample[1][2][1][1][1] = "blah"
aExample[1][2][1][1][2] = "blah2"
aExample[1][2][1][1][3] = "blah3"

_   __
Daniel Farmer
Web Developer Consultant
P: 613.284.1684

  _  


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]