I am writing a console application in visual basic. I am writing code that checks the value of a key pressed. If the key presses is not one that I specified, then the console displays an error message. However, I would like it to be able to go back to the beginning of the sub, so that the user can try making another choice. I tried using a do, loop, until statement, but it would not catch the invalid keys, and it misidentified the correct keys as bad ones. I just want to know how to have the program return to the beginning of the sub (in my case sub main()). Thanks in advance!
2007-02-10
16:59:08
·
3 answers
·
asked by
nohscompclub3
1
in
Computers & Internet
➔ Programming & Design