12-07-2005, 07:49 AM
EDIT..
ok, your code is complete rubbish now...
Example of how to fix. Your code.
The code you should be using.
I$ = INKEY$ assigns the key pressed value to I$ at that moment in time.
...does a keyboard prompt, and the result is stored at the end.. variable1$ in this case.
ok, your code is complete rubbish now...
Example of how to fix. Your code.
Code:
DO
4
i$ = inkey$
IF i$ = "s" OR i$ = "S" THEN LOCATE 6, 1: INPUT "Are you sure you would like to SAVE? Y/N", response$
'IF response$ = "y" OR response$ = "Y" THEN BSAVE
IF response$ = "n" OR response$ = "N" THEN RETURN
IF response$ <> "y" OR response$ <> "Y" or response$ <> "n" OR response$ <> "N" then goto 4
LOOP until i$ = ""
The code you should be using.
Code:
DO
IF i$ = "s" OR i$ = "S" THEN LOCATE 6, 1: INPUT "Are you sure you would like to SAVE? Y/N", response$
response$ = UCASE$(response$)
'IF response$ = "Y" then BSAVE
I$ = INKEY$ assigns the key pressed value to I$ at that moment in time.
Code:
INPUT "statement"; variable1$
...does a keyboard prompt, and the result is stored at the end.. variable1$ in this case.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Visit www.neobasic.net to see rubbish in all its finest.