The code below works and outputs.... but if you move the debug comments
inside the second for loop, as shown below, it hangs

.....
.....
        for (j=1; j LTE q.RecordCount; j+1) {
                writeoutput("text=" & text & " - code=" & code & " - j="
& j & "<br />"); 
                 /*
                if (q.STATUS[j] EQ code) {
                        count = q.COUNT[j];
                }
                */ 
        }
.....
.....


Thanks,

DC



-----Original Message-----
From: Raymond Camden
Sent: 31 July 2003 12:51
To: CF-Talk
Subject: RE: Help with a pesky UDF...


So is the code below the code that cuases the error, or the code that
works ok?


> -----Original Message-----
> From: David Collie (itndac)
> Sent: Thursday, July 31, 2003 5:23 AM
> To: CF-Talk
> Subject: Help with a pesky UDF...
> 
> 
> Hello all,
> 
> Having problems with the following UDF and need a little bit
> of help if possible....  running CF5 btw on IIS 5
> 
> Everything runs fine as the code is below, but as soon as I
> move the debug comments inside the second 'for' loop but 
> before the 'if' statement, the page just hangs and kills the 
> thread.... it just doesn't seem to want loop over the count 
> of the query...
> 
> I can't see a reason why it shouldn't work.... Code as
> follows with test query...
> 
                                
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to