Yes, and to take it a step further, i would do :
<cfset var resultSet = queryNew("")/>
I do that just so people reading my code behind me have a little
easier time.
andy
On Jul 21, 2006, at 1:53 PM, Brian Peddle wrote:
I am pretty positive this needs to be scoped but want to verify
Example CFC to return query results:
<cffunction name="getSearchOptions" access="public" output="no"
returntype="query">
<cfset var resultset = "" />
<cfquery name="resultset" >
Query here
</cfquery>
<cfreturn resultset />
</cffunction>
The resultset should be scoped right?
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the
subject of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by
CFXHosting (www.cfxhosting.com).
An archive of the CFCDev list is available at www.mail-archive.com/
[email protected]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]