I have been using PureBasic for years but I have never had occasion to use this option before....
The compiled console application is working correctly with calls to ProgramParameter correctly returning the values as expected, but I can't get it to run in the IDE.
I enter the value in the 'Executable Commandline' text box but get nothing but an empty string back with I run the program from the IDE. I have tried:
- Listing the values as I would on the command line: --xxx -f -v abc
- Listing them in single quotes as a string: '--xxx -f -v abc'
- Listing them in double quotes as a string: "--xxx -f -v abc"
- Listing them in individual quotes as a string: "--xxx" "-f" "-v" "abc"
In each case the call to ProgramParameter returns an empty string
Give the maturity of the product, I'm assuming it's user error, but I'm stumped as to what I'm doing wrong....
Thanks.
Compile/Run Options - Executable Commandline
Re: Compile/Run Options - Executable Commandline
Works as expected here (PB6.21 x64 Win11):
Executable Commandline:
Code:
Result:
Executable Commandline:
Code: Select all
--xxx -f -v abc
Code: Select all
For i = 0 To CountProgramParameters() - 1
Debug ProgramParameter(i)
Next
Code: Select all
[15:57:00] --xxx
[15:57:00] -f
[15:57:00] -v
[15:57:00] abc
{Home}.:|:.{Dialog Design0R}.:|:.{Codes}.:|:.{History Viewer Online}.:|:.{Send a Beer}