I still use an old DOS program-creating application called QBasic.
I recently had to update one of the programs I use, but when I tested
it when I considered it updated, it gave me a couple problems that for the
life of me I cannot figure out why, and what remedy needs to be used to
get the updated program to work again without an error.
It has to do with a SELECT CASE code series. I have an input file of certain
dollar values that I post into an Array and into individual variables. The
Select Case code lines, for the most part, work. I have a CASE ELSE statement
at the end of two of the CASE segments that end the program if “bad input”
figures are encountered.
I searched diligently for why this was occurring, but I was sure the input data
used was good and should have passed muster. After not being able to find out
the cause, I commented out the two CASE ELSE lines of code. Now the program
works like I expected. I don’t feel like I am likely to include any input data that
won’t be acceptable, so I am not concerned about having commented out these
two lines of code. I just feel like every contingency should be programed for.
Can any QBasic adept lounger give me a clue on why this is happening.
flavet