Page 1 of 1

String variables in loop....?

Posted: Tue Oct 23, 2012 6:40 am
by tvonbrasch
Hi

Sometimes, it would be convenient to split long equations into parts using string variables.

For example, how can one make a string variable (hstring) so that atest2 would equal atest 1 in the program:

string hstring = "log(l{%k})"
for %k 15
equation atest1.ls log(h{%k}) log(l{%k})
equation atest2.ls log(h{%k}) {hstring}
next


It seems that Eviews is not recognising the loop string %k when it is a part of another string variable.

Sincerely
Thomas von Brasch

Re: String variables in loop....?

Posted: Tue Oct 23, 2012 7:50 am
by EViews Gareth
You can't do a double reference like that.