Running 2.095 I just now did the old "Hello World." I compiled
it as a console exe. When I press F4 it runs and the window
stays on the screen. In the window is 'Press any key to continue ...'
I press a key and it goes away. If I run the exe outside of IWBasic, the
console window just flashes and disappears. Could you tell
me why?
Bill
P.S. I even tried OPENCONSOLE. At 1st I had not, and did not need
while still in IWBasic.
Both of the attached run fine for me whether in the IDE or not.
Thank you. I didn't think of UNTIL INKEY$ <> "".
Found out something the hard way. I compiled
bill-bo2.iwb as a Windows exe. Would not run,
could not delete, and had to reboot the system.
Then I was able to delete the exe. Re-compiled
as a Console exe and it worked fine.
Thanks, again,
Bill
I think there's still a slight problem here.
print "Hello World"
print "Press any key to continue .."
do:until inkey$<>""
end
In the IDE, you get two prompts (notice the different dot spacings).
The .exe works correctly outside the IDE .. ::)
best wishes, :)
Graham