While debugging a program I 'ctrl-break'ed [broke?] during an input statement from the Immediate window. Afterward, running the program caused the printing of characters that normally produce cursor movement to instead print actual symbols, the ASCII table showing most of them. The character codes affected are 7,9,10,11,12,13,28,29,30,and 31.
I'm curious what's causing it and if there is another, more elegant way of getting these characters.
Example.
which produces
Now type:
input x
in the Immediate window, enter, then control-break from the output screen.
Rerunning the program now gives
A(upsideDownTriangle)B
as the ASCII chart suggests.
To get back to normal, run the input statement again without breaking.
Btw, I've found this to happen in both QB1.1 and 4.5
Thank you,
Johndoh
I'm curious what's causing it and if there is another, more elegant way of getting these characters.
Example.
Code:
CLS
PRINT "A"; CHR$(31); "B"
Code:
A
B
Now type:
input x
in the Immediate window, enter, then control-break from the output screen.
Rerunning the program now gives
A(upsideDownTriangle)B
as the ASCII chart suggests.
To get back to normal, run the input statement again without breaking.
Btw, I've found this to happen in both QB1.1 and 4.5
Thank you,
Johndoh