Page 1 of 1

displaying errors for addins

Posted: Mon Jan 06, 2014 5:36 am
by jackB
Hi,

For the life of me I can't get an addin to show the same error handling that is displayed when the code is being run as a program. I have tried using the addin/-addin code but whatever I do the addin suprreses the errors. in particular i'm trying to handle errors relating to sharing violations when importing data using "import(type=excelxml, c=max)" method.

Any help appreciated, I can send the addin if needs be

thanks

jack

Re: displaying errors for addins

Posted: Mon Jan 06, 2014 6:10 am
by EViews Gareth
Post the Addin.

Re: displaying errors for addins

Posted: Mon Jan 06, 2014 9:59 am
by jackB
see attached with work file showing the table it uses for reference. the addin works but if for example the file name is mis-spelt it won't say anything as to why it fails. When ran as a program it prompts with message box/log. i've ended up using the status line but still interested to know the issue.

thanks!

Jack

Re: displaying errors for addins

Posted: Tue Jan 07, 2014 8:54 am
by EViews Gareth
Seems to work for me - I get the same errors whether I run the program as a program or as an Add-in.

Re: displaying errors for addins

Posted: Wed Jan 08, 2014 10:44 am
by jackB
not sure what the issue is then as when ran as an addin it's definitely not been showing the same errors.

The addin is distributed via an azip file installer but i couldn't post that. would that make a difference?

Re: displaying errors for addins

Posted: Wed Jan 08, 2014 12:03 pm
by EViews Gareth
Shouldn't