Page 1 of 1

Creating user-defined procedures

Posted: Wed Jul 19, 2017 8:44 am
by mschwerdtfeger
Hello there,
Is it possible to create user-defined procedures?
Thank you

Re: Creating user-defined procedures

Posted: Wed Jul 19, 2017 9:09 am
by EViews Gareth

Re: Creating user-defined procedures

Posted: Thu Jul 20, 2017 12:01 pm
by mschwerdtfeger
Thank you vm Gareth.
I have a couple of follow-up Qs:

1) is it possible to write Add-in procedures that would take options from the program executing the add-in?

series_name.myproc(options)

2) Is it possible to initialize an object (a series in this example) with an Add-in procedure?

series1_name.myproc series2_name '''' where series2_name is the name assigned to the output series generated by myproc

What should I write in the myproc.prg add-in code to achieve these two goals?

Thanks

Re: Creating user-defined procedures

Posted: Thu Jul 20, 2017 1:23 pm
by EViews Gareth
Yes to both questions. If you read through the add-in documentation, or look at any of the existing add-ins you can get some ideas.