reverse "model.append"

For questions regarding programming in the EViews programming language.

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

moezfh
Posts: 1
Joined: Tue Sep 08, 2009 3:53 am

reverse "model.append"

Postby moezfh » Tue Sep 08, 2009 4:34 am

hi,

is it possible to change the text in a model, in the way to delete one line ":eq_x" and replace with ":eq_x_alt" or just text "x=1+2*z".

I don't want to exclude variable x, but replace the definition of it.
I think on revers model.append (havn't found it in the manual)
or s.th. like @replace(model.text,":eq_x",":eq_x_alt") but it doesn't work :(

in my programm, i can solve a model with various szenarios (user decision at the beginning) and tables for comparision basline/szenario_x or szenario_x/szenario_y are generated.
Now i want to change a parameter in a equation.
I see, i can make an add-factor on the parameter, but is there a better possibility.

Thanks for help in advance.
Jens

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

Re: reverse "model.append"

Postby EViews Gareth » Tue Sep 08, 2009 8:09 am

There is currently no way to edit/remove text in a model specification programmatically.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest