Page 1 of 1

Just getting started.... or not

Posted: Sun Dec 31, 2017 5:51 am
by marksmithhfx
I downloaded PB, fired it up. Typed in the following

Code: Select all

OpenConsole()
Print("Press enter to exit")
Input()
End
and 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
Mark

Re: Just getting started.... or not

Posted: Sun Dec 31, 2017 7:14 am
by davido
Welcome to PureBasic.

I am presuming that you are using OSX on a Mac.

It works on my PC but not on my Mac and since I've never used the Console, I always use gadgets, I cannot say why.
However, the following Thread may assist you:
http://www.purebasic.fr/english/viewtop ... 16#p367816

Re: Just getting started.... or not

Posted: Sun Dec 31, 2017 7:36 am
by wilbert
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?
Set the executable format to "Console" (Compiler > Compiler Options)

Re: Just getting started.... or not

Posted: Sun Dec 31, 2017 9:15 am
by davido
@wilbert,
Thank you.

Re: Just getting started.... or not

Posted: Sun Dec 31, 2017 8:04 pm
by marksmithhfx
wilbert wrote: Set the executable format to "Console" (Compiler > Compiler Options)
Thanks, it worked. Now I understand what "console" was referring to.

Onwards :)

Re: Just getting started.... or not

Posted: Sun Dec 31, 2017 8:10 pm
by marksmithhfx
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
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.

Thanks for being so quick to respond. I'm sure I will need lots of help.

Mark