Code: Select all
OpenConsole()
Print("Press enter to exit")
Input()
End
Any suggestions?
Thanks
Mark
Code: Select all
OpenConsole()
Print("Press enter to exit")
Input()
End
Set the executable format to "Console" (Compiler > Compiler Options)marksmithhfx wrote:nothing happened. I mean it said it compiled and everything but no output window appeared, no message appears, nor wait for input either.
Any suggestions?
Thanks, it worked. Now I understand what "console" was referring to.wilbert wrote: Set the executable format to "Console" (Compiler > Compiler Options)
Thanks David. Yes, the console is fairly useless as an I/O device (I mean, I don't think anyone would write an actual program to do that). I'll be looking for other ways to do this (a dialog box would be ideal). Much to learn.davido wrote:Welcome to PureBasic.
I am presuming that you are using OSX on a Mac.
However, the following Thread may assist you:
http://www.purebasic.fr/english/viewtop ... 16#p367816