displaying errors for addins

For questions regarding programming in the EViews programming language.

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

jackB
Posts: 12
Joined: Wed Jul 04, 2012 10:03 am

displaying errors for addins

Postby jackB » Mon Jan 06, 2014 5:36 am

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

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

Re: displaying errors for addins

Postby EViews Gareth » Mon Jan 06, 2014 6:10 am

Post the Addin.

jackB
Posts: 12
Joined: Wed Jul 04, 2012 10:03 am

Re: displaying errors for addins

Postby jackB » Mon Jan 06, 2014 9:59 am

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
Attachments
data import.prg
(1.72 KiB) Downloaded 296 times
WF1.WF1
(61.08 KiB) Downloaded 255 times

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

Re: displaying errors for addins

Postby EViews Gareth » Tue Jan 07, 2014 8:54 am

Seems to work for me - I get the same errors whether I run the program as a program or as an Add-in.

jackB
Posts: 12
Joined: Wed Jul 04, 2012 10:03 am

Re: displaying errors for addins

Postby jackB » Wed Jan 08, 2014 10:44 am

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?

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

Re: displaying errors for addins

Postby EViews Gareth » Wed Jan 08, 2014 12:03 pm

Shouldn't


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests