Add-In in object menu and from command window?

For questions regarding programming in the EViews programming language.

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

KrilleJ
Posts: 40
Joined: Fri Feb 20, 2015 6:15 am

Add-In in object menu and from command window?

Postby KrilleJ » Mon Mar 16, 2015 6:38 am

Hi,

I have not managed to register Add-Ins as a specific "Menu/Procedure type" (say series Add-In) and yet call it from the command window. It would be nice to be able to have the Add-In appearing in a specific object meny but still being able to call it from the command window.

Do you have any suggestions as how to accomplish this?

Best,
Kristian

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

Re: Add-In in object menu and from command window?

Postby EViews Gareth » Mon Mar 16, 2015 8:56 am

I'm not sure I understand the question. What have you tried, and how did it not work?

KrilleJ
Posts: 40
Joined: Fri Feb 20, 2015 6:15 am

Re: Add-In in object menu and from command window?

Postby KrilleJ » Tue Mar 17, 2015 1:40 am

Sorry about that. I'll try again.

So, I have written an Add-In that can be applied to a series object only.

The next thing I do is to register my Add-In under "Add-ins>Manage Add-ins...>Add" in EViews main window.

Here I have several options. Under "Attributes" I can set the "Menu/Procedure type". If I choose "Global command" the Add-in will appear under "Add-ins" in EViews main window. I also can state a command that will invoke the Add-in procedure from the command window in EViews main window. That's all fine.

An alternative would be to specify that I want the Add-in to appear under "Proc>Add-ins...>" in the SERIES object window. This would be nice since then I can be sure that the Add-in will be called from a SERIES object. This is done by setting "Menu/Procedure type" to "Series Proc". But if I do this, the registered command will not be recognized in the command window of the main EViews window. This is bad since I would like to be able to associate the Add-in with a SERIES object, while still being able to call it from the command window.

So my question is: Is there any possibility to register the Add-in to appear in the "Proc>Add-ins..." in the SERIES object window while still retaining the possibility to call the Add-in from the command window?

Hope this is a little bit clearer than the previous post.

/Kristian

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

Re: Add-In in object menu and from command window?

Postby EViews Gareth » Tue Mar 17, 2015 10:03 am

When you set the types to be "series proc", then the command will take the form:

Code: Select all

series.procname

KrilleJ
Posts: 40
Joined: Fri Feb 20, 2015 6:15 am

Re: Add-In in object menu and from command window?

Postby KrilleJ » Wed Mar 18, 2015 1:05 am

Ok, I see.

Thanks.

/Kristian


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 0 guests