freezing loops

Results 1 to 2 of 2

Thread: freezing loops

  1. #1
    Join Date
    Dec 1969

    Default freezing loops

    I have this loop on a page, and it freezes and sometimes the scripts times out, any idea as to why???<BR><BR><BR>i = 0<BR>x = FormatNumber((rs3.recordcount / 2), 0)<BR>response.write(i & "<BR>")<BR>response.write(x)<BR><BR>Do While i &#060;= x<BR>i = i + 1<BR>response.write(i & "<BR>")<BR>response.write(x)<BR>Loop<BR><BR>Th anks in avance

  2. #2
    Join Date
    Dec 1969

    Default RE: freezing loops

    Hi Clay,<BR><BR>Looks like it *could* be the old &#039evil type coercion&#039 problem... why do you use the formatnumber? Try using:<BR><BR> x = fix(rs3.recordcount / 2)<BR> or<BR> x = rs3.recordcount 2<BR> or, instead of <BR> Do While I &#060;= x<BR> use<BR> Do While clng(I) &#060;= clng(x)<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts