Dang.  That's also handy.  Thanks, Dan!

--Ben

Dan Vega wrote:
> You can find out the dimension of an array like so
>
> myArray.getDimension()
>
>
> Thank You
> Dan Vega
> [email protected]
> http://www.danvega.org/
>
>
> On Thu, Dec 17, 2009 at 11:15 AM, DURETTE, STEVEN J (ATTASIAIT) <
> [email protected]> wrote:
>
>   
>> Ben,
>>
>> Do an arraylen on the first row.  arrayLen(myVar[1])
>>
>> That will return the number of columns or planes.
>>
>> Steve
>>
>>
>> -----Original Message-----
>> From: Ben Conner [mailto:[email protected]]
>> Sent: Thursday, December 17, 2009 11:08 AM
>> To: cf-talk
>> Subject: array question
>>
>>
>> Hi,
>>
>> Haven't played much with arrays but having reviewed how they work, I
>> have a question that I can't find an answer to:
>>
>> Given a 2 or 3 dimensional array, how do you determine the # of columns
>> or planes in an array?  If you reference a column that isn't defined, CF
>>
>> throws an error.  But I don't find a function that returns the # of
>> columns or planes, unlike arraylen() which returns the # of rows.
>>
>> Thanks...!
>>
>> --Ben
>>
>> --
>> Ben Conner            [email protected]
>> Web World, Inc.       888-206-6486
>> PO Box 1122           480-704-2000
>> Queen Creek, AZ 85242
>>
>>
>>
>>
>>
>>
>>     
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329237
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to