Some of the programs are just text input and output and those work just fine, but whenever there is a "WINDOW" statement my DosBox outputs an error.. I have never before written anything in QBasic and have been struggling with this WINDOW statement.. Here is a part of the program from the book that uses WINDOW statement:
Code: Select all
WINDOW 1
REM A TWO STROKE ENGINE
WINDOW 2,"CLICK BOX",(201,50)-(400,450),1
PRINT "SELECT BY BUTTON"
WINDOW 3,"CURRENT DATA",(10,50)-(200,450),1
WINDOW 4,"DATA INPUT",(400,50)-(600,450),1
WINDOW 5,"ACTION BOX",(10,430)-(600,480),1
WINDOW 6,"EXHAUST TYPE",(400,50)-(600,450),1
WINDOW 1
100 INPUT"NEW DATA OR FILE DATA (TYPE N OR F)?";D$
IF D$="N" THEN GOTO 110
IF D$="F" THEN GOSUB FILED
110 WINDOW 3
CLS
I looked at some tutorials on qbasic and graphics and it seems that the WINDOW statement is used differently on Mac
Can anybody help me change the program so I can run it on DosBox ?
also, I see a "BUTTON" statement .. and can't find it in any reference manual
https://postimg.cc/QBF6D8Hs
https://postimg.cc/VrMDSKqV
https://postimg.cc/qtW1MP3K
https://postimg.cc/K1q9CkcJ