i want to build a sub that one of the input variables is an equation.
i want to output a graph object that has the same name as the equation just with the ending eq_name_graph where eq_name is the equation name.
I would think this is possible i just cant find the function for it in the help.
I am using eviews 6
Thank You
Yoni
saving name of equation as a string object
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13602
- Joined: Tue Sep 16, 2008 5:38 pm
Re: saving name of equation as a string object
This actually can't be done in EViews 6 (at least I can't think of a way). You'll have to use EViews 7, where you can use the @name data member to retrieve the name.
Re: saving name of equation as a string object
another question i had was being able to loop through all the names of objects in a page (or workfile) so when i generate in a program a graph and it already exists the program crashes. I use delete a lot in the code, but if the object isnt there then the program crashes again.
i would rather put an if in a loop so it will look for the name and if it finds it then deletes it if not then moves on.
thank you
yoniboi
i would rather put an if in a loop so it will look for the name and if it finds it then deletes it if not then moves on.
thank you
yoniboi
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13602
- Joined: Tue Sep 16, 2008 5:38 pm
Re: saving name of equation as a string object
You can use @isobject to test whether an object exists.
Re: saving name of equation as a string object
ok,
thanks for the help
yoniboi
thanks for the help
yoniboi
Who is online
Users browsing this forum: No registered users and 2 guests
