More like:

<cfscript>
    for (i=1; i LTE selProd.recordcount; i=i+1) {
        writeOutput(selProd.PR_NAME[i] & "<br>");
    }
</cfscript>

Sharon
----- Original Message -----
From: "VAN VLIET, SCOTT E (SBCSI)" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, March 25, 2002 6:47 PM
Subject: Looping over a query with <CFSCRIPT>


> Is this possible?  If so, sample code would be appreciated.
>
> I tried the following, and got an access error (i understand that you
can't
> modify currentrow, etc, but one can wish, right ^_^):
>
> <cfscript>
>  while (selProd.CurrentRow LTE selProd.RecordCount)
>  {
>   writeOutput(selProd.PR_NAME);
>   writeOutput("<br>");
>   selProd.CurrentRow = selProd.CurrentRow + 1;
>  }
> </cfscript>
>
> Thanks in advance!
>
> --
> SCOTT VAN VLIET
> SENIOR ANALYST
> SBC SERVICES, INC
> Tel: 858.886.3878
> Fax: 858.653.6763
> Email: [EMAIL PROTECTED]
> 
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to