Creating user-defined procedures

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

mschwerdtfeger
Posts: 4
Joined: Wed Jun 21, 2017 1:15 pm

Creating user-defined procedures

Postby mschwerdtfeger » Wed Jul 19, 2017 8:44 am

Hello there,
Is it possible to create user-defined procedures?
Thank you

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13306
Joined: Tue Sep 16, 2008 5:38 pm

Re: Creating user-defined procedures

Postby EViews Gareth » Wed Jul 19, 2017 9:09 am

Follow us on Twitter @IHSEViews

mschwerdtfeger
Posts: 4
Joined: Wed Jun 21, 2017 1:15 pm

Re: Creating user-defined procedures

Postby mschwerdtfeger » Thu Jul 20, 2017 12:01 pm

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13306
Joined: Tue Sep 16, 2008 5:38 pm

Re: Creating user-defined procedures

Postby EViews Gareth » Thu Jul 20, 2017 1:23 pm

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.
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 25 guests