Deleting user-specified object

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

Deleting user-specified object

Postby KrilleJ » Wed Dec 14, 2016 4:39 am

When I try to delete a registered user-specified object I get different results when I do it via the Proc meny and via the command line.

In my .ini file, that defines the structure of the user-sepcified object, I have

Code: Select all

[procs] "Delete object", delete, ".\DeleteObject.prg"
The DeleteObject.prg file reads:

Code: Select all

%objName=_this.@name delete {%objName}
When executed from inside the created object (call it MyCreatedObject) via "Proc > Delete object" everything is ok. But when typing MyCreatedObj.delete in the command window, EViews crashes.

Can you give me any clue to what I am missing?

Best,
Kristian

Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests