arxt@tank.uchicago.edu (patrick palmer) (02/19/90)
If you are not an AmigaBasic programmer, hit "n"; but if you are: I am trying to help my youngest son do something in AmigaBasic. He wants to open several windows and to have his program do things in first one and then another. I know little about basic, especially Amigabasic, but I tried to make a prototype program to make a new screen, make two windows in this screen, and then take input into one screen and print something out, then do the same for the other. The prototype program is appended. In an (admitedly incomplete) reading of the manual, I was unable to discover what was wrong. Two screens are created, but after the first print statement, the subsequent input and print statements take place in the second screen. I obviously do not understand how to make the program select a window as the active window. I would be very grateful for a corrected prototype - along with an explanation of the correct method for doing this. (I might not follow it, but my 11 year old probably will.) SCREEN 1,640,400,1,4 WINDOW 2,"Test1",(10,10)-(300,190),15,1 WINDOW 3,"Test2",(320,10)-(600,190),15,1 WINDOW OUTPUT 2 PRINT "Try the first screen." INPUT "enter birthdate:",b$ PRINT b$ PRINT "no one was born that long ago!!" WINDOW OUTPUT 3 PRINT "Try the second screen." INPUT "enter birthdate again:",c$ PRINT c$ PRINT "impossible!!" END Pat Palmer (email: reply or ppalmer@oddjob.uchicago.edu)