Adam,

Thanks for putting that example together. I've made a slight change
but don't have access to a server at the moment. Can someone run this
and share the results?

CALLER.CFM
<cfscript>
q = queryNew("col");
for (i=1; i le 10; i=i+1){
       queryAddRow(q);
       querySetCell(q, "col", chr(64+i));
}

o = createObject("component", "c1");
q2 = o.f1(q);
writeOutput("#q2.currentRow# [although now it's reset]<br />");
</cfscript>

C1.CFC
<cfcomponent>
       <cffunction name="f1" output="true">
               <cfargument name="q">

               <cfset var o = createObject("component", "c2")>
               <cfloop query="arguments.q" startrow="3" endrow="8">
                       <cfoutput>f1: #arguments.q.currentRow#  =
#arguments.q.col#<br
/></cfoutput>
                       <cfset o.f2(arguments.q)>
                       <hr />
               </cfloop>
               <cfreturn arguments.q>
       </cffunction>
</cfcomponent>

C2.CFC
<cfcomponent>
       <cffunction name="f2" output="true" returntype="void">
               <cfargument name="q">
               <cfoutput>f2: #arguments.q.currentRow# =
#arguments.q.col#<br /></cfoutput>
       </cffunction>
</cfcomponent>


Patrick


-- 
Patrick McElhaney
704.560.9117
http://pmcelhaney.blogspot.com
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]

Reply via email to