<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Sat, 29 Jan 2005 21:00:14 +0000
From   : Kris Adcock <kris@...>
Subject: Re: ON...

A.Weston wrote:

> Is there a way of implementing this kind of thing in a way as efficient
> as ON..GOSUB (or PROC in BASIC V):
> 
> IFc%=3IFFN3
> IFc%=4IFFN4
> IFc%=5IFFN5
> IFc%=6IFFN6
> IFc%=8IFFN8
> IFc%=9IFFN9
> IFc%=14IFFN14
> IFc%=21IFFN21
> IFc%=22IFFN22
> 

I seem to recall you can use EVAL to call functions, so:

answer%=EVAL("FN"+STR$(c%))

would probably do it.

Cheers,

Kris.
-- 
Personal site: http://www.danceswithferrets.org/
RISC OS Programming site: http://www.tofla.iconbar.com/
"Fighting the ceaseless fight against literacy and good taste."
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>