while loop trouble

Results 1 to 2 of 2

Thread: while loop trouble

  1. #1
    Ayur Guest

    Default while loop trouble

    Hi peoples<BR><BR>I am runnig the following code :<BR><BR>&#039;reads in posted data and clears all spaces<BR>numbercategory=trim(request.form("number category"))<BR><BR>&#039;Check to see if value is numerical - turns out true<BR>if isnumeric(numbercategory) = true<BR>response.write ("is numerical")<BR>end if<BR><BR>while not (counter=numbercategory) <BR><BR>&#039;stuff<BR><BR>counter=counter+1<BR>we nd<BR><BR><BR>This crashes the server. I rebooted the thing about 20 times today.<BR><BR>When I replace numbercategory with a hardcoded value it works fine.huh?<BR><BR>I someone could please shed some light on this problem I would be very grateful<BR><BR>Thanks<BR><BR>Barry

  2. #2
    Join Date
    Dec 1969

    Default RE: while loop trouble

    That loop worries me, put this in your loop to see why it&#039;s not evaluating to true.<BR><BR>response.write counter & "=" & numbercategory & "<BR>"<BR><BR>You say you reboot the server, surely you just need to wait 90 seconds until the script times out and your server should start to respond again.<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