Ok, you mentioned that it works correctly after the second attempt.
Questions you should be asking yourself:
What is the code that causes the window to pop up and ask for input?
Is that code...
Type: Posts; User: JJeng
Ok, you mentioned that it works correctly after the second attempt.
Questions you should be asking yourself:
What is the code that causes the window to pop up and ask for input?
Is that code...
Your while loop looks ok, but take a closer look at how you are initializing the variables before the loop.