Qbasicnews.com

Full Version: CHR$(?) for the enter key
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

staxo

Do you guys know what that is
Thx
It's CHR$(13).
To find the CHR$ values I just write a simple program like

Code:
DO

DO: i$ = INKEY$: LOOP UNTIL i$<>""

PRINT ASC(I$)

LOOP UNTIL i$ = CHR$(27)
aw, you stole my thunder hex!
Oh! That makes me some kind of Prometheus? [Image: biglaugh.gif]
yeah man really I wouldn't say RTFM but the easiest way is to do the inkey loop if you're not sure.
I wouldn't say it too, but sadly for us +80% of the answers for these kind of questions can be found on the manual... and the ASCII code table is in the QB manual, so... Sad

Ah. And if you wonder why 13=CR, it's 'cuz CR means CARRIAGE RETURN. BTW, some "old-timers" with computers will remember that in some machines the ENTER key was named... RETURN. Funny, eh?
Quote:Ah. And if you wonder why 13=CR, it's 'cuz CR means CARRIAGE RETURN. BTW, some "old-timers" with computers will remember that in some machines the ENTER key was named... RETURN. Funny, eh?

I thought the big funny-shaped one was still called RETURN :???: or maybe thats just me being an old timer Smile

And guys, if everybody RTFM we wouldn't have anybody posting here at all Wink
Quote:And guys, if everybody RTFM we wouldn't have anybody posting here at all Wink

I don't think so. Not everything comes in the FM, but the basic stuff does. I think that RingTFM should be the 1st step when someone has a problem, but people are too lazy (I don't understand that, as RingTFM is faster and easier than having to log on the internet, load IE, enter QBnews and posting a question...)