CLOSECONSOLE

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by CONVERT.

Try this :

OpenConsole()
PrintN("Hello")
Delay(1000)
PrintN("The Console is closed")
CloseConsole()

Delay(5000)
MessageRequester("","It is the end.",0)
End

It seems that the closeconsole() does not work, even with the option compiler "Console".

It is not important. Just to say...

Windows 98 SE, PB 3.61.


Jean, France.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> Windows 98 SE, PB 3.61.

Convert, your app closes the console fine for me with both Win 98se and Win 2000 Pro...
But I am running PureBasic v3.62, which may make a difference. According to your post,
you are still using v3.61?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.
Originally posted by CONVERT

It seems that the closeconsole() does not work, even with the option compiler "Console".
I sometimes find that the console window does not close if I have the debugger enabled and I use the Debug command, but it is not all the time. The console window does close when I quit the debugger.

The console always closes at the correct time when I do not have the debugger enabled or if I do not use the debug command.


--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.62, external editor)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by CONVERT.

I downloaded 3.62. It works !
Sorry. The next time, I'll check if I have the last version...

Jean, France.
Post Reply