Inserting labels into a group of tables with a for loop

For questions regarding programming in the EViews programming language.

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

Valentin
Posts: 2
Joined: Mon Apr 20, 2009 8:59 am

Inserting labels into a group of tables with a for loop

Postby Valentin » Mon Apr 20, 2009 9:18 am

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!

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

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

Postby EViews Gareth » Mon Apr 20, 2009 9:25 am


Valentin
Posts: 2
Joined: Mon Apr 20, 2009 8:59 am

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

Postby Valentin » Mon Apr 20, 2009 9:41 am

Thanks a lot!!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests