[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GSoft Basic subroutine
- Subject: GSoft Basic subroutine
- From: limtc <thyechean@gmail.com>
- Date: Thu, 1 May 2008 01:13:18 -0700 (PDT)
- Complaints-to: groups-abuse@google.com
- Injection-info: n1g2000prb.googlegroups.com; posting-host=218.186.11.2; posting-account=xPI8rAoAAABxyK8KyUIiYChvvtqAeJGI
- Newsgroups: comp.sys.apple2
- Organization: http://groups.google.com
- User-agent: G2/1.0
- Xref: g2news1.google.com comp.sys.apple2:34801
Hi,
Now I am back to learning (and teaching ) GSoft BASIC, after I am able
to get it to work on my real Apple IIGS - it is fun to program on the
real things!
Written a few demos using HGR and QuickDraw, all works fine, however,
when I try to use SUB as subroutines, I got error.
Just above my program, I try a simple test (don't care what it means
first):
SUB GR
HGR
END SUB
But running it immediately returns a "Syntax error >>> SUB GR"! I also
try other name like INIT and it is the same, so it is not about
reserved words. I read the GSoft Basic manual and subroutine is indeed
declare as SUB, so what am I doing wrong?
PS: In the manual, this example is given:
SUB INITGRAPHICS
HGR
SETPENMODE (0)
SETSOLIDPENPAT (15)
END SUB