Re: TIB: String Arrays, GOSUB
[Prev][Next][Index][Thread]
Re: TIB: String Arrays, GOSUB
>Date: Tue, 21 Oct 1997 15:44:04 -0700
>From: Peter Sahlstrom <petes@technologist.com>
>To: ti-basic@lists.ticalc.org
>Subject: TIB: String Arrays, GOSUB
>Reply-To: ti-basic@lists.ticalc.org
>
>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!
>
>--
>Peter Sahlstrom
>petes@technologist.com/petersahlstrom@geocities.com
>http://www.geocities.com/SiliconValley/Lakes/1950 (Homepage)
>
>
It's possible on the 92 using locally defined programs to simulate a
GOSUB, but there's no way that I know of to do it on other calcs. I'm
also stumped on string arrays.
--==Aaron Hertz==--
-=ahertz@hotmail.com=-
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com