[fpc-pascal] New to the list; Lots of startup questions
L505
fpc505 at z505.com
Sun Oct 9 09:20:44 CEST 2005
>
> Also I did a Hello program that put the output in a DOS screen, which
> flashed off immediately. I got it to stay open by waiting for input
> using the keypressed function in the CRT unit. Is there some other way?
You can call
readln;
to pause the program. Also, in windows, you can run
cmd /k myprogram.exe
and it will open a command prompt for you and hold it open if the program crashes or ends.
--
L505
http://z505.com
More information about the fpc-pascal
mailing list