Page 1 of 1

Inserting labels into a group of tables with a for loop

Posted: Mon Apr 20, 2009 9:18 am
by Valentin
Hi

I am inserting different labels into a group of tables with a for loop. The idea is the following (that it does not work):

table results
table(!nrows,!ncols) results
%name1="Matrix 1"
%name2="Matrix 2"
%name3="Matrix 3"

For !k=1 to 3
setcell(results, 1+!step, 1, %name{!k})
!step=!step+10
next

the problem is when using "%name{!k}" in the setcell command
Would you help me?

Thanks!

Re: Inserting labels into a group of tables with a for loop

Posted: Mon Apr 20, 2009 9:25 am
by EViews Gareth

Re: Inserting labels into a group of tables with a for loop

Posted: Mon Apr 20, 2009 9:41 am
by Valentin
Thanks a lot!!