Sorry this is late but check cflib.org for a queryrowtostructure tag.

-----Original Message-----
From: Justin D. Scott [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 1:34 PM
To: CF-Talk
Subject: RE: Easy way to get data from a single query row into a structure?

> Thanks, Justin, that did it.  I was trying this route:
> 
> <cfset qryRowData = queryNew(getVendors.columnlist)>
> <cfloop list="#getVendors.columnlist#"
>       index="i" delimiters=",">
> <cfset 
> querySetCell(qryRowData,i,getVendors[i][getVendors.currentRow])>
> </cfloop>
> 
> but was getting a "The row number, (0) is out of bound." error.

Just as an FYI, you were getting that error because you didn't add a row to
your new query before trying to set the data cells.  Right before that loop
you would need...

<cfset queryAddRow(qryRowData)>

.....to add a row to the query before putting data in it.


-Justin Scott




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203133
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to