Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I am using Qbasic to setup & install a DOS program. One of the items is an 'Input' for a Drive letter. In testing, if an invalid drive is input, a screen return of 'Invalid drive specified' shows on the screen , but the program does not stop with an error. How can I trap or test the output ?
INPUT " Drive letter for installation " ; dr$
SHELL "" + dr$ + ":" .. (change to drive selected )
Need code to test for 'Invalide drive specified'
This does not react to ' ON ERROR GOTO '
It is like a soft error, and the program continues to run.
Thanks, T. Roehl MPLS. MN
0 · ·