TIB: String Arrays, GOSUB
[Prev][Next][Index][Thread]
TIB: String Arrays, GOSUB
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)
- Warning
- Could not process part with given Content-Type:
text/x-vcard; charset=us-ascii; name="vcard.vcf"
Follow-Ups: