The toArray() function is not needed due to the way that component methods deal 
with passed arguments. To quote myself

"The Arguments Scope
When a UDF is executed, the Arguments scope will automatically be created to 
contain any information passed into the UDF. This scope is private to the UDF 
and will exist until the UDF has finished processing. The Arguments scope can 
be used as either a structure or an array and any functions that work on either 
of these two data types will also work on the Arguments scope.

>From User-Defined Functions to ColdFusion Components
Fusion Authority Quarterly Update Vol. 1, Issue 2, page 36
copyright Michael Dinowitz, licensed to Fusion Authority
http://www.fusionauthority.com/quarterly/";

This is why Adrian's solution did not need to convert the query. It took 
advantage of the nature of queries and passed arguments. 

Note: Quotes from print materials made to the list should include full 
references to the original quote for copyright reasons. Quotes from 'free use' 
materials such as the CF documentation does not have to have copyright info 
included, but should have the location for people's use.

>Micheal,
>
>You can easily do something like this
>
><cfset myList = ArrayToList( yourQuery[yourColumn].toArray() ) />
>
>HTH
>
>Qasim
>
>On 1/26/07, Michael Dinowitz <[EMAIL PROTECTED]> wrote:
>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267770
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to