General information
Category:
Coding, syntax & commands
>I have created a test program that is basically doing a numbers crunch, inserting multiple records into two different tables one after another. I want it to continue inserting records until the users tells it to stop. Right now I have it set up to stop when the user hits the ESC key (by putting all of my code in a Do While loop: DO WHILE(inkey() <> 27)). But, when the user hits ESC instead I am getting an error which says ***INTERRUPTED***. It doesn't finish going through the code, it just stops dead in its tracks. Can anyone tell me a good way to stop the insertions without getting the error message?
***************************************************************************
Joe;
Try:
Do While inkey() <> 27
If Inkey() = 27
* You may want to close your tables at this point.
Exit
Endif
* Your code
EndDo
Tom
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only