Page 1 of 1

stand alone exe fails

Posted: Mon Sep 01, 2025 10:05 pm
by Jeff8888
This simple code fails when compiled to a standalone exe file. When I run the exe I get a bell sound when I try to enter a number. The program works fine when I run/compile. PB 5.3 and windows 10.

Code: Select all

OpenConsole()
EnableGraphicalConsole(1)
ConsoleColor(15,1)
ClearConsole()

Print("Enter a limit for this search: ")
limit = Val(Input())
Print("you entered "+Str(limit))
Delay(1000)
CloseConsole()
End

Re: stand alone exe fails

Posted: Mon Sep 01, 2025 10:23 pm
by Kiffi
Have you set the executable format to "Console"?

Image

Re: stand alone exe fails

Posted: Wed Sep 03, 2025 2:04 am
by Jeff8888
Yes that worked, thanks.