IonicWind Software

IWBasic => General Questions => Topic started by: Bill-Bo on March 20, 2013, 06:57:41 AM

Title: Possible bug - Don't know for sure
Post by: Bill-Bo on March 20, 2013, 06:57:41 AM
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.
Title: Re: Possible bug - Don't know for sure
Post by: LarryMc on March 20, 2013, 08:08:46 AM
Both of the attached run fine for me whether in the IDE or not.
Title: Re: Possible bug - Don't know for sure
Post by: Bill-Bo on March 20, 2013, 10:03:15 AM
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
Title: Re: Possible bug - Don't know for sure
Post by: GWS on March 20, 2013, 11:08:03 AM
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