The error is in this line
INPUT INKEY$()
Inkey$() is a function, but Input needs a variable, like Input A$
and in the following if conditions
IF ASC(INKEY$())=y
GOTO yes
endif
Beside the Inkey$ problem described above, there are a couple of other mistakes. Let's say we have
INPUT$ A$
Now the user types in
Y
ASC(A$) would return 89 (ASCII for Y)
So
IF ASC(A$) = y
would resolve in
IF 89 = 0
Why 0? because y is a variable, initialised to 0.
The correct line would be
IF UPPER$(A$) = "Y" ...
The same applies to the following IF blocks too
As for the GOTO command, I wouldn't say "
never use GOTO" 'cause then I'd have to say "never use EXIT", as well. My advice is "use GOTO
seldom".
I awoke in a fever. The bedclothes were all soaked in sweat.
She said "You've been having a nightmare and it's not over yet"