Page 1 of 1
setcell for tables
Posted: Thu Nov 18, 2010 10:47 am
by nesheus
I am trying to put (2,1) in one cell in a table but I keep getting error messages: setcell(results,4,5,"(",ar1_1,",",ar1_2,")")
when I put each one in seperate cells then it becomes ( 2 , 1 ) which doesn't look good.
Any suggeston?
thanks
Re: setcell for tables
Posted: Thu Nov 18, 2010 12:25 pm
by EViews Jason
Try
Code: Select all
setcell(results, 4,5 ,("(" + @str(!ar1_1) + "," + @str(!ar1_2) + ")"))
Re: setcell for tables
Posted: Thu Nov 18, 2010 1:11 pm
by nesheus
I got error message then I removed "!", then it worked. Thanks a lot for your help.
setcell(results, 4,5 ,("(" + @str(ar1_1) + "," + @str(ar1_2) + ")"))
Re: setcell for tables
Posted: Thu Nov 18, 2010 1:19 pm
by EViews Jason
I presumed ar1_1 and ar1_2 were numeric variables in your program. It sounds as though they are scalars in your workfile, in which case you are correct the ! is not needed.
Re: setcell for tables
Posted: Thu Nov 18, 2010 2:41 pm
by nesheus
yes, they are scalars.