Thanks for all the help, I've tried the solution and it works, I forgot that
effectivly the query is a structured array.

I need a break/holiday or caffine injection.

Jason Lees 
National Express
Email : [EMAIL PROTECTED]


-----Original Message-----
From: Hayes, David [mailto:[EMAIL PROTECTED]]
Sent: 03 April 2001 16:19
To: CF-Talk
Subject: RE: Looping through a Query in CFSCRIPT


<CFSCRIPT>
for(myCounter=1;
    myCounter LTE myQuery.recordcount;
    myCounter = myCounter + 1){
                writeOutput(myQuery.myFieldName[myCounter] & '<br>');
        };

</CFSCRIPT>

-----Original Message-----
From: Jason Lees (National Express)
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 9:55 AM
To: CF-Talk
Subject: Looping through a Query in CFSCRIPT



Hi all,

Is it possible to loop through the results of a CFQuery structure? 

and Has anybody got an example of how its done

TIA.


Jason Lees 
National Express
Email : [EMAIL PROTECTED]

###################################################
This document is intended for, and should only be read by, those persons to
whom it is addressed. Its contents are confidential and if you have received
this message in error, please notify us immediately by telephone on 0121 609
6301
and delete all records of the message from your computer. Any form of
reproduction,
dissemination, copying, disclosure, modification, distribution and / or
publication of this message without our prior written consent is strictly
prohibited. Neither the author of this message nor their employers accept
legal responsibility for the contents of the message. Any views or opinions
presented are solely those of the author.
If you have any queries please contact [EMAIL PROTECTED]
####################################################
##################################################
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to