[fpc-pascal] Can a program find out how it was started?

Moz list at moz.geek.nz
Tue Aug 2 11:25:13 CEST 2005

miller at psy.otago.ac.nz said:
> Sometimes, though, new users try to start the programs by
> double-clicking on the exe file (application icon). When the program
> starts, I would like to be able to tell if they have done that, so
> that I can present a special error message.

One trivial solution is to drop a readline at the end of the help
routine. That way the cmd window stays open until they hit enter
(which you should tell them to do). Mildly annoying for people at the
command line if there's only a few lines of help, but solves the


More information about the fpc-pascal mailing list