Re: TIB: String Arrays, GOSUB
[Prev][Next][Index][Thread]
Re: TIB: String Arrays, GOSUB
couldn't you simply use goto and lables instead of gosub?
just a thought...
Rene Kragh Pedersen wrote:
>
> Peter Sahlstrom wrote:
> >
> > I originally learned basic using GW-BASIC in about 1988, and I've
> > noticed two major things TI-BASIC appears to be missing:
> >
> > * String Arrays-for instance, A$(1)="A", A$(2)="B", A$(3)="C",
> > etc. Is there a way to simulate these in TI-BASIC?
> > * GOSUB & Subroutines-for instance:
> > 10 PRINT "Hello";
> > 20 GOSUB 50
> > 30 PRINT "Goodbye";
> > 40 GOSUB 50:END
> > 50 FOR I=1 TO 5
> > 60 PRINT ".";
> > 70 FOR J=1 TO 1000
> > 80 NEXT J
> > 90 NEXT I
> > 100 RETURN
> >
> > I know it's possible to do something similar to what is done in
> > lines 20 & 40 by calling another program, and having the called
> > program have a RETURN statement at the end, but it would simplify
> > my programming greatly if I was able to do in-program subroutine
> > calls.
> >
> > Thanks for your help everybody!
> >
> > --
>
> It would complicate the TI a lot + as you say, it's not necessary (I do
> miss
> the gosubs too though)
>
> However, I don't recall the old basic having "while" ...correct me if
> I'm wrong?
>
> --
> Rene Kragh Pedersen
> -----------------------------------------------
> .oO) Aibohphobia - the fear of palindromes (Oo.
--
______ ______
/ \ / \
| OOOO | | OOOO |
| OOOO |________| OOOO |
| OOOO / \ OOOO |
\_____/ \_____/ Matthew
____| |____
/ __| |__ \ matto@iapc.net
|_| \ / |_|
/ \ \________/ / \
\___/ / \ / \ \___/ It wasn't me...
| | | | I didn't do it...
|___| |___| No body saw me...
(___) (___) You can't prove a thing.
| | | |
|___| |___|
/ | | \
/_____| |_____\
Follow-Ups:
References: