That works perfect, thanks for the help and feedback.

Ken.


On Thu, 13 Jan 2005 15:55:08 -0800, Ung, Seng <[EMAIL PROTECTED]> wrote:
> f1: 3 =C
> f2: 3 =A
> 
> --------------------------------------------------------------------------------
> f1: 4 =D
> f2: 4 =A
> 
> --------------------------------------------------------------------------------
> f1: 5 =E
> f2: 5 =A
> 
> --------------------------------------------------------------------------------
> f1: 6 =F
> f2: 6 =A
> 
> --------------------------------------------------------------------------------
> f1: 7 =G
> f2: 7 =A
> 
> --------------------------------------------------------------------------------
> f1: 8 =H
> f2: 8 =A
> 
> --------------------------------------------------------------------------------
> 1 [although now it's reset]
> 
> -----Original Message-----
> From: Patrick McElhaney [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 13, 2005 3:45 PM
> To: [email protected]
> Subject: Re: [CFCDev] Query Current Row Bug....
> 
> 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]
> ----------------------------------------------------------
> 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]
> 


-- 
Ken Ingle
KICWEB Design
[EMAIL PROTECTED]
http://www.kicweb.com
http://www.kicweb.com/blog
----------------------------------------------------------
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