|
Post by barrti on Jun 20, 2024 16:46:07 GMT
Hi, I'm definitely new at QB64and this forum. I have just installed QB64 v2.02 on my windows 11 laptop. I have found some old programs written in an older book intended for MacOS Quickbasic. The book is probably about 1990.
I was hoping to just enter the code without too many problems. The first program I tried was just fine, it ran as expected. It had no graphical commands, just text based input and output.
The second one gave me immediate problems with the WINDOW command. I have included the first part of this program intended for MacOS Quickbasic below.
I get the feeling that the WINDOW command works differently in MacOS Quickbasic to IBM Quickbasic. I have looked at the WINDOW command in the QB64 Wiki but I can't relate it to how it is used in the code below.
As soon as I enter WINDOW 1, I get a syntax error that tells me what its expecting.
Can anyone assist here? How can I find out how to write these programs intended for the original MacOS Quickbasic, so that they work in QB64 on a Windows laptop?
Any help would be greatly appreciated.
Cheers
Program 1.2 Excerpt (at beginning)
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
|
|
|
Post by bplus on Jun 20, 2024 18:01:43 GMT
need a reference manual for MacOS Quickbasic because this was never used in qb for windows programs. it is possible the window command is a user defined window sub routine. it does look like it designates parts of the screen for certain blocks of processing like view or view print commands in qb64 but it looks like this window command allows a title to the view port section plus what's that number on the end for? hey! check this out stackoverflow.com/questions/77604326/quickbasic-window-statementthe reply same as mine
|
|
|
Post by barrti on Jun 21, 2024 2:36:26 GMT
Thanks bplus for this. I'm downloading the applesoft basic manual now.
|
|
|
Post by barrti on Jun 21, 2024 2:59:17 GMT
Bplus Cant find the window statement in applesoft basic or in msbasic for Macintosh manuals.
|
|