I am new to EViews and need understand a snippet code.
Say I have a for loop like
Code: Select all
For %Y 1 2 3 4 5 6 7 8 9
For !i=10 to 20
If w{%Y}(!i+1) <> na then
...
NEXT
NEXT
Thanks!
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
Code: Select all
For %Y 1 2 3 4 5 6 7 8 9
For !i=10 to 20
If w{%Y}(!i+1) <> na then
...
NEXT
NEXT
There is no definition for 'w' before that, but w{%y} appears couple of times in the code.Impossible to say without knowing what the W objects are.
w{%y} just means that the loop will first run on w1, then w2, and so on.
Seems I need to figure out the purples first.Yes it is a legal expression. Without knowing what the objects in the workfile are, it is impossible to say what the expression does though.
That runs too fast on statusline which I could not read each value, but not a big issue.
The () operators change depending on what type of object they are used on.
http://www.eviews.com/help/helpintro.ht ... 04.html%23
Code: Select all
For !i=0 to 9
logmsg !i
Next
logmsg "Mark"
logsave E:\\test.txt
Thanks a lot!
Users browsing this forum: No registered users and 2 guests