It's pretty interesting. I am happy that I know the difference exists... But
I can image if I did not, it might lead to hours of head-wall-pounding :)

.......................
Ben Nadel 
www.bennadel.com

-----Original Message-----
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 25, 2006 4:44 PM
To: CF-Talk
Subject: RE: Cool feature I didn't know about

<cfset MaxValue = ArrayMax( qData[ "value" ] ) /> <cfset lstValues =
ValueList( qData.value ) />

...... But this Throws errors:

<cfset MaxValue = ArrayMax( qData.value ) /> <cfset lstValues = ValueList(
qData[ "value" ] ) />

They appear to be the same thing, but throw error simply on syntax??

I do not know the underpinnings of ColdFusion to know for sure, but I would
guess it depends on the functions.  These are functions after all, and
functions except certain kinds of parameters.

The funky thing here is that qData.value VS qData["value"] are parts of a
complex variable a recordset.  They are not the entire recordset which is
qData, but they are not an individual datum in the recordset either, which
would require a row designate, such as qData.value[1] or qData["value"][2]. 

I do not believe that a column of a recordset is an array in and of itself.
So I suspect these functions have been written to read or convert a column
into an array, but each one does it differently.  

--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

---------
| 1 |   |
---------  Binary Soduko
|   |   |
---------
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any attachments is for the
sole use of the intended
recipient(s) and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited. If you
are not the intended recipient, please contact the sender and delete any
copies of this message. 






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:247698
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to