TIB: What's that shortcut?
[Prev][Next][Index][Thread]
TIB: What's that shortcut?
Well, it sounds like most people are doing okay this summer, so that's
good... :)
I actually have a... 'BASIC' QUESTION!!! A while back (months ago), I came
upon the knowledge that there was a mathematical equation that could be
quite helpful.
For example, say you had a menu with choices from 1 to 7 and a "getky"
command so the user could make his or her choice easier. To display the
number of the choice they picked, I'd have to write lengthy, lousy code like
the following:
:WHILE getky == 0
:END
:getky -> A
:IF A == 92
:Disp "7"
:IF A == 93
:Disp "8"
:IF A == 94
:Disp "9"
:IF A == 82
:Disp "6"
**yadda, yadda, yadda...
I know someone came up with a math expression such that my code could be
like:
:WHILE getky == 0
:END
:<MATHEMATICAL EXPRESSION USING getky AS THE VARIABLE> -> B
The variable B would contain the number of the key pressed. (If 1 was
pressed, B == 1. If 2 was pressed, B == 2. And so on and so forth...)
Anyway, now that my message has taken up 300k of space, I think I'll call it
quits... :)
Any help you guys could give me would be greatly appreciated.
P.S~ J.G: reading in the summer? Blecch! :D
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
Follow-Ups: