I was trying to get a non-maxgui window to be closed when clicking on the "x"....
The above code would run and then stop immediately, because I had typed AppTerminate not AppTerminate()
Which leads me to he question what is AppTerminate when not expressed as a function?
Strict Graphics 800 , 600 , 0 Global x% = 0 Repeat gameloop() Until KeyHit(KEY_ESCAPE) Or AppTerminate Function gameloop() x = (X + 1) Mod 600 Cls DrawText ( "O",x,100 ) Flip End Function
The above code would run and then stop immediately, because I had typed AppTerminate not AppTerminate()
Which leads me to he question what is AppTerminate when not expressed as a function?