If the program is run from PB using the compiler commandline options or from Terminal, the parameters work. But if an associated file is clicked the program is launched but not parameters are shown?
Is there some setting required for this?
ProgramParameter function not working [RESOLVED]
ProgramParameter function not working [RESOLVED]
Last edited by coder14 on Sun Dec 18, 2016 11:08 am, edited 1 time in total.
Re: ProgramParameter function not working
Note that this feature is provided in the "Compile/Run" tab under "Run executable with:". This feature will only work when the program is run from the IDE and is meant for testing.
If you want a particular feature to persist then set it as variable that you can toggle on or off in your code.
If you want a particular feature to persist then set it as variable that you can toggle on or off in your code.
Re: ProgramParameter function not working
Yes, program parameter are only valid from terminal. To get a double click filename, you need to implement an application delegate with the 'openFiles:' handler.
Re: ProgramParameter function not working
See also this post
http://www.purebasic.fr/english/viewtop ... 49#p391349
http://www.purebasic.fr/english/viewtop ... 49#p391349
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: ProgramParameter function not working
Thanks Fred! And thanks wilbert! That works perfectly even when the instance is running. It solves my IPC problem of trying to tag the running instance with the new launching parameters.
So double runs are not allowed by default on Macs, or is it better to indicate that in the plist?
So double runs are not allowed by default on Macs, or is it better to indicate that in the plist?