Maximum options for add-in

For tips, questions and general information about writing Add-ins, how to package them, and how to submit them to EViews for publication.

Moderators: EViews Gareth, EViews Moderator

CrisisStudent
Posts: 30
Joined: Mon Nov 16, 2020 10:52 am

Maximum options for add-in

Postby CrisisStudent » Tue Dec 08, 2020 3:33 am

Hi all,

I have written add-in which has rather large number of user-specified options. I think there is a limit to number of options user can specify - when I run the add-in with large number of options specified I get "Too many arguments in {add-in command}". Can you confirm? If yes, what is the limit and is there a way around this other than separating the add-in in more than one add-ins?

Thanks!
CrisisStudent

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

Re: Maximum options for add-in

Postby EViews Gareth » Tue Dec 08, 2020 8:41 am

I believe 96, although there are cases where it can be less.

You could combine multiple options into one, I suppose.
Follow us on Twitter @IHSEViews

CrisisStudent
Posts: 30
Joined: Mon Nov 16, 2020 10:52 am

Re: Maximum options for add-in

Postby CrisisStudent » Tue Dec 08, 2020 8:52 am

Thanks. I am way less than 96 (approx 20), so it has to be something else.

EViews Matt
EViews Developer
Posts: 505
Joined: Thu Apr 25, 2013 7:48 pm

Re: Maximum options for add-in

Postby EViews Matt » Thu Dec 10, 2020 11:30 am

Hello,

The options limit appears to be 25.

CrisisStudent
Posts: 30
Joined: Mon Nov 16, 2020 10:52 am

Re: Maximum options for add-in

Postby CrisisStudent » Mon Feb 15, 2021 10:51 am

Ah, ok, thanks. Any way to increase it on your part?

CrisisStudent
Posts: 30
Joined: Mon Nov 16, 2020 10:52 am

Re: Maximum options for add-in

Postby CrisisStudent » Mon Apr 26, 2021 8:44 am

Just to follow up on this - the maximum number of options became binding for the SpecEval add-in, which has close to 40 user options, so 25 can be limiting there. Not sure if it is worth addressing on your part, I just wanted to put it in context now that the add-in is out.

EViews Matt
EViews Developer
Posts: 505
Joined: Thu Apr 25, 2013 7:48 pm

Re: Maximum options for add-in

Postby EViews Matt » Mon May 10, 2021 10:10 am

Hello,

The next patch will double the options limit, which should accommodate your addin.

CrisisStudent
Posts: 30
Joined: Mon Nov 16, 2020 10:52 am

Re: Maximum options for add-in

Postby CrisisStudent » Wed Jun 09, 2021 1:48 am

Awesome, thanks!


Return to “Add-in Writing area”

Who is online

Users browsing this forum: No registered users and 1 guest