Long procedure names in user objects

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

ErikG
Posts: 85
Joined: Wed Jan 23, 2013 1:18 am

Long procedure names in user objects

Postby ErikG » Fri Sep 12, 2014 3:32 am

Hi,

Is there a maximum length for the name (or the .prg filename) for user defined procedures in user defined objects? - If this is the case, could you make sure that Eviews gives the author some kind of warning? I may be mistaken but it appears that Eviews simply ignores calls to procedures that have a rather long, but not unreasonably long, name.

I put together an example for you:

The .ini file:

Code: Select all

[constructor] ".\TestObject construct.prg" [views] [procs] "testlong", ARatherLongProcedureName, ".\ARatherLongProcedureName.prg" "testshort", ShortName, ".\ShortName.prg"
The long and short procedures only contain @uiprompt() lines. The constructor is just an empty .prg file.

When I use these procedures only the shortname procedure seems to work, the long one is silent. There is no error message, it simply skips the long procedure, while the short procedure produces the intented @uiprompt() message.

Code: Select all

WfCreate(wf=attempt, page=mypage) u 1 TestObject Ob ob.ARatherLongProcedureName ob.ShortName

ErikG
Posts: 85
Joined: Wed Jan 23, 2013 1:18 am

Re: Long procedure names in user objects

Postby ErikG » Fri Sep 12, 2014 3:44 am

I should mention that calling the long procedure with the interactive user interface - the procedure meny in the object - works fine, but calling the procedure by running the .prg file as shown above does not.

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

Re: Long procedure names in user objects

Postby EViews Gareth » Fri Sep 12, 2014 8:16 am

I can't replicate this (using the same constructor that you did).

ErikG
Posts: 85
Joined: Wed Jan 23, 2013 1:18 am

Re: Long procedure names in user objects

Postby ErikG » Mon Sep 15, 2014 12:42 am

Strange, perhaps it's a network thing, none of my files are on a local computer.
The character limit seems to be 16, i.e 2 bytes right?
Could you try this with any object:

Code: Select all

WfCreate(wf=attempt, page=mypage) u 1 TestObject Ob ob.ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ ob.XXXXXXXXXXXXXXXXXXXXXXXXXX ob.HHHHHHHHHHHHHHHHH ob.TTTTTTTTTTTTTTTT
None of these procedures actually exist, but my error message doesn't come until the TTTTTT procedure.

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

Re: Long procedure names in user objects

Postby EViews Gareth » Mon Sep 15, 2014 7:58 am

Ah, yep, I can see some weirdness going on there. I've checked in some code that should make it better. Should be available next patch.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests