Re: query columnCount

2007-11-13 Thread Raymond Camden
listlen(queryname.columnlist)

On Nov 13, 2007 1:38 PM, Richard White [EMAIL PROTECTED] wrote:
 Hi, hopefully this is a very simple question. i cant find the answer on 
 google :(

 how do i count how many columns were returned in a cfquery

 thanks




-- 
===
Raymond Camden, Camden Media

Email: [EMAIL PROTECTED]
Blog  : www.coldfusionjedi.com
AOL IM : cfjedimaster

Keep up to date with the community: http://www.coldfusionbloggers.org

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

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


Re: query columnCount

2007-11-13 Thread Qasim Rasheed
ListLen( query.columnlist )

On 11/13/07, Richard White [EMAIL PROTECTED] wrote:

 Hi, hopefully this is a very simple question. i cant find the answer on
 google :(

 how do i count how many columns were returned in a cfquery

 thanks

 

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

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


Re: query columnCount

2007-11-13 Thread Bryan Stevenson
I don't think there is a direct count of columns returned, but there is 
queryName.columnListso just use listLen(queryName.columnList) and 
there ya go ;-)

Cheers

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.



Richard White wrote:
 Hi, hopefully this is a very simple question. i cant find the answer on 
 google :(

 how do i count how many columns were returned in a cfquery

 thanks 

 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

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


Re: query columnCount

2007-11-13 Thread Richard White
thanks works perfectly :) 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

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


Re: query columnCount

2007-11-13 Thread Janet MacKay
how do i count how many columns were returned in a cfquery

One way 

cfset numberOfColumns = listLen(yourQuery.columnList) 

~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


Re: query columnCount

2007-11-13 Thread Ron Gowen
listLen(queryName.columnList)

should work


On 11/13/07, Richard White [EMAIL PROTECTED] wrote:

 Hi, hopefully this is a very simple question. i cant find the answer on
 google :(

 how do i count how many columns were returned in a cfquery

 thanks

 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

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


Re: query columnCount

2007-11-13 Thread morgan l
ListLen(queryName.ColumnList)

On Nov 13, 2007 1:38 PM, Richard White [EMAIL PROTECTED] wrote:
 Hi, hopefully this is a very simple question. i cant find the answer on 
 google :(

 how do i count how many columns were returned in a cfquery

 thanks

 

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

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


Re: query columnCount

2007-11-13 Thread Casey Dougall
Time for some of you guys to switch to gmail!

On Nov 13, 2007 3:07 PM, Richard White [EMAIL PROTECTED] wrote:

 thanks works perfectly :)




~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

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


Re: query columnCount

2007-11-13 Thread Charlie Griefer
cfset colCount = listLen(queryname.columnList) /

On Nov 13, 2007 11:38 AM, Richard White [EMAIL PROTECTED] wrote:
 Hi, hopefully this is a very simple question. i cant find the answer on 
 google :(

 how do i count how many columns were returned in a cfquery

 thanks

 

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

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