TIB: GOTO Slows Down?


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

TIB: GOTO Slows Down?




Really? That's an eye-opener because I've been struggling with speed every
time I write a program, I always have trouble with speed, what other things
should I watch for?
-- 
o w e n  c a n n o n
ocannon@oregonvos.net
www.oregonvos.net/~ocannon


> From: Rob Smith <kormoc@netzero.net>
> Reply-To: ti-basic@lists.ticalc.org
> Date: Sun, 30 Jan 2000 21:04:22 -0500
> To: ti-basic@lists.ticalc.org
> Subject: Re: TIB: Help with Sprites
> 
> 
> use less gotos, everytime you use a goto, it starts from the top of the
> program and works it's way down looking for the lbl
> 
> At 05:53 PM 1/30/00 -0800, you wrote:
> 
>> Here's what I use:
>> 
>> lbl t
>> Getky -> x
>> if x==0
>> goto t
>> 
>> if x==22
>> goto exit
>> 
>> if x==23
>> goto other
>> 
>> goto t
>> 
>> So, you can make it fulfill a lot of commands this way. If someone has a
>> better way, please tell me.
>> 
>> 
>> 
>> 
>> 
>> --
>> o w e n  c a n n o n
>> ocannon@oregonvos.net
>> www.oregonvos.net/~ocannon
>> 
>> 
>>> From: CalenWakefield@aol.com
>>> Reply-To: ti-basic@lists.ticalc.org
>>> Date: Sun, 30 Jan 2000 16:34:31 EST
>>> To: ti-basic@lists.ticalc.org
>>> Subject: Re: TIB: Help with Sprites
>>> 
>>> 
>>> My next question is this: How do you use getkey() for multiple commands.
>>> Such as this:
>>> 
>>> Loop
>>> While getkey()=(a number)
>>> (have it do what ever)
>>> While getkey()=(a different number)
>>> (have it do something else)
>>> Endwhile
>>> Endwhile
>>> Endloop
>>> 
>>> I do something like that, it is the only way I know of to use getkey()
>>> commands, but sometimes when the corresponding key is pressed it will
>> not do
>>> what it is supposed to do because it will be on the other  "while"
>> statement.
>>> Do you know what I am doing wrong or if there is a different way to use
>>> getkey()?
>>> By the way I am talking about an 89 still
>>> 
>>> 
>>> Thanks for
>>> your help
>>> 
>>> 
>>> 
>> 
> 
> 
> __________________________________________
> NetZero - Defenders of the Free World
> Get your FREE Internet Access and Email at
> http://www.netzero.net/download/index.html
> 
> 



Follow-Ups: References: