>> -----Original Message-----
>> From: Mark A Kruger [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, May 26, 2005 10:41 AM
>> To: CF-Talk
>> Subject: RE: Structures vs. "Real Structures"
>>
>> This is what Isaac was talking about.
>>
>> on CFMX 7 arraySum(queryname.coluname) doesn't work.  But
>> arraySum(queryname['columnName']) does.  The trick is
>> getting a reference
>> to
>> the array to return from the call.

> Yup - my bad.

> I've been doing that since CF 4.5 and still screw it up.

> Doing "queryname.columnname" will automatically give you
> the value of the
> first row (same as "queryname.columnname[1]").

> Using the index notation does return an array reference.

> Now I'll tattoo that on my eyelid for easy reference...

Iirc I actually found that there were conditions in which array
notation didn't work... sometimes queryname[columname] worked and
other times it required queryname["#columnname#"]... not sure why --
though it was across different versions -- iirc the behavior on an
individual version of CF is consistent.

s. isaac dealey     954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207770
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to