Print

Print


Dear Moustafa,

Yes, that is possible. See under arglist in the help. Everything after the ox 
program argument is passed to the program; everything controls oxl.

Jurgen

oxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxox
oxoxoxox 16th OxMetrics user conference 2015
oxoxoxox      Cass Business School London, 3-4 September
oxoxoxox 2015 Econometrics Summer School
oxoxoxox      TBC
oxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxox
Dr Jurgen A Doornik
James Martin Fellow, Institute for New Economic Thinking
at the Oxford Martin School, University of Oxford
http://www.doornik.com
http://www.oxmetrics.net
oxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxox

On 2014-10-17 9:55, Moustafa Shama wrote:
> Dear All,
> is it possible to call an Ox file from the console and giving it parameters like
> in C++ for example
>
> something like below
>
>
> "C:\Program Files (x86)\Ox\bin\oxl.exe" "%CD%\test.ox test"
>
>
>
> #include <oxstd.h>
> #include <oxdraw.h>
> #include <oxfloat.h>
> #include <oxprob.h>
>
> main( input )
> {
> decl i;
> println("the input was:");
> println(input);
> }
>
> when I've received an error saying wrong number of arguments
>
> Thanks a lot.
>
> Kind Regards,
>
> Moustafa Shama