Hello,
I have a few of the exact same for loops in a program. I was wondering if there is a way change them all at once. In other words, my for loop goes through a list of variables which I am adding to, rather than going to every line where that for loop appears is it possible to change it once in the program?
Thanks
Replace the for loop line with
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- EViews Developer
- Posts: 563
- Joined: Thu Apr 25, 2013 7:48 pm
Re: Replace the for loop line with
Hello,
Sure, you can create a string variable (in one place) holding the list of variables and then use it in multiple for loops. For example,
Sure, you can create a string variable (in one place) holding the list of variables and then use it in multiple for loops. For example,
Code: Select all
%variable_list = "a b c d"
for %var {%variable_list}
...
next
for %var {%variable_list}
...
next
Who is online
Users browsing this forum: No registered users and 27 guests