stand alone exe fails

Just starting out? Need help? Post your questions and find answers here.
Jeff8888
User
User
Posts: 41
Joined: Fri Jan 31, 2020 6:48 pm

stand alone exe fails

Post 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
User avatar
Kiffi
Addict
Addict
Posts: 1497
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: stand alone exe fails

Post by Kiffi »

Have you set the executable format to "Console"?

Image
Hygge
Post Reply