<cfset myQuery = MyFunctionThatReturnsAQuery()>
<cfoutput query="myQuery">
...
</cfouput>
Ade
-----Original Message-----
From: Oleg Gunkin [mailto:[EMAIL PROTECTED]
Sent: 18 January 2006 17:26
To: CF-Talk
Subject: using returned query
Some functions can return a query. The question is how to use the returned
query later usinf cfoutput or cfloop?
For example:
<cffunction name="getusers">
<cfquery name="result">
select * from users
</cfquery>
<cfreturn result>
</cffunction>
How do I properly recieve and work with that query?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229888
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