Re: Adding command line parameter to GUI application?

Luca Olivetti via fpc-pascal <[email protected]>
Newsgroups gmane.comp.compilers.free-pascal.general
Message-ID <[email protected]>
El 25/2/25 a les 21:28, Bo Berglund via fpc-pascal ha escrit:

> I want the program to load a video file if it appears in the command line so it
> can be immediately played rather than having to click the OpenFile button and
> navigate to the video and select it.
> 
> Any ideas, suggestions, links?

https://www.freepascal.org/docs-html/rtl/system/paramcount.html
https://www.freepascal.org/docs-html/fcl/custapp/tcustomapplication.getoptionvalue.html

(read also the "See also" section)

Bye
-- 
Luca

_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.