Replacing code automatically

For questions regarding programming in the EViews programming language.

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

miorinnovo
Posts: 199
Joined: Sun Mar 01, 2015 5:01 pm

Replacing code automatically

Postby miorinnovo » Fri Mar 06, 2015 2:00 pm

Is there a command that will replace code in an Eviews program? I plan on creating a few programs that will do a lot of the same things to the variables. So rather than copying and pasting the new variable name into each line of relevant code it would be nice to work from a template and add a line that says replace x with new_variable name.

Thanks in advance for any tips.

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

Re: Replacing code automatically

Postby EViews Gareth » Fri Mar 06, 2015 4:01 pm

Read through the programming chapter of the Command and Programming reference, paying particular attention to replacement variables, for-loops and subroutines.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests