[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: running .system files from BASIC



"Robert Boucher" <boucher1@alumni.utexas.net> wrote in message
40709349.26C1@alumni.utexas.net">news:40709349.26C1@alumni.utexas.net...
: If you old enough, you know that D$ was almost universally used
for
: CHR$(4). Therefore,
:
: 10 D$=CHR$(4)
: 20 ?D$"-program to run"
: .
: .
: 150 ?D$"-another program to run"

The correct format would be:

10 D$=CHR$(4)
20 ?D$;"-xxxxxxxx.SYSTEM"

There is no point in having anything below
this point since once the program is loaded
and run, the BASIC program will no longer be
valid. If you want a menu then use this:

10 D$=CHR$(4)
20 ?"TYPE '1' for 1st program "
30 ?"TYPE '2' for 2nd program "
40 ?"TYPE '3' for 3rd program "

I use:

50 INPUT A

of course #-ENTER is necessary but then it
will pause automagically waiting for input

60 IF A=1 then ?D$;"-xxxxxxxx.SYSTEM"
70 IF A=2 then ?D$;"-xxxxxxxx.SYSTEM"
80 IF A=3 then ?D$;"-xxxxxxxx.SYSTEM"
100 END

You need the Semi-Colon after D$ otherwise
it'll think D$"-xxxxxxxx.SYSTEM" is all one
variable.

This will make you a nice menu and once you
get used to it then you can add many more
selections. I use this format for loading
single file games that I convert from DOS 3.3
to ProDOS. Works quite well.

Bill @ GarberStreet Enterprizez };-)
Web Site - http://garberstreet.netfirms.com
Email - willy46pa @ comcast DOT net
Change DOT to a dot to contact me



---
This email ain't infected, dude!

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.634 / Virus Database: 406 - Release Date: 3/20/04