Command Line Parameters


Ian_Wade_G3NRW
 

I'm sure this must be documented somewhere, but I haven't found it yet.

Let's say I have a program MYPROG.BBC, which I compile to MYPROG.EXE. At runtime I then want to pass command line parameters to the program.

For example, to run the program in verbose mode, and saving an error log, the command might be something like:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

myprog /v /log=mylog.txt

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Question is: within the program, how do I read the parameter string "/v /log=mylog.txt" ?

--
73
Ian, G3NRW

Join bb4w@groups.io to automatically receive all group messages.