Page 1 of 1

Expressions in table proc arguments

Posted: Tue Nov 20, 2012 8:57 am
by paues
Many table procedures seems not be able to handle expressions as arguments. It would be very helpful to be able to specify relative column/row references rather than absolute ones. As Eviews works now, code snippet 1 needs to be rewritten as code snippet 2 in order to work.

Code snippet 1

Code: Select all

close @all wfcreate a 1900 1901 table(1,3) mytable !column=1 mytable.setfont(1,!column+2) +b
Code snippet 2

Code: Select all

close @all wfcreate a 1900 1901 table(1,3) mytable !column=1 !tmpcol=!column+2 mytable.setfont(1,!tmpcol) +b

Re: Expressions in table proc arguments

Posted: Tue Nov 27, 2012 8:11 am
by EViews Glenn
Thanks for the suggestion.

Re: Expressions in table proc arguments

Posted: Wed Feb 06, 2013 12:23 pm
by DannyBachman
I can't even get the following to work:

scalar count = 3
adfstats.setfont(!count,3) +b

The error message is "Invalid cell range, invalid row value in !count". I get the same error message whether or not I use the "!"

Re: Expressions in table proc arguments

Posted: Wed Feb 06, 2013 12:32 pm
by EViews Gareth
Using a scalar object is effectively the same thing as using an expression. You can only use program variables, currently.

Re: Expressions in table proc arguments

Posted: Mon Mar 04, 2013 4:48 pm
by EViews Jason
The next EViews 8 patch will have this fixed for table procs when specifying a cell range. Expressions may not work for any additional arguments or options depending on the procedure.