TIB: Re: What's that shortcut?


[Prev][Next][Index][Thread]

TIB: Re: What's that shortcut?




Oh god!  Jeez, and I used to know this too...

We learned this in Algebra2, so finding that type of book would get you
started in the right direction.

If memory serves me correctly, it was all about multipication/divsion then
addition/subtraction and then another multiplication/division, but my memory
is often wrong... hehe =)

-Miles Raymond      EML: m_rayman@bigfoot.com
ICQ: 13217756       IRC: Killer2        AIM: KilIer2 (kilier2)
http://www.bigfoot.com/~m_rayman/

----- Original Message -----
From: Grant Winney <cosmo70@hotmail.com>
To: <ti-basic@lists.ticalc.org>
Sent: Friday, July 23, 1999 9:34 PM
Subject: 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



References: