Expressions in table proc arguments

For making suggestions and/or requests for new features you'd like added to EViews.

Moderators: EViews Gareth, EViews Moderator

paues
Posts: 169
Joined: Fri Apr 15, 2011 7:16 am
Location: Stockholm, Sweden

Expressions in table proc arguments

Postby paues » Tue Nov 20, 2012 8:57 am

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

EViews Glenn
EViews Developer
Posts: 2627
Joined: Wed Oct 15, 2008 9:17 am

Re: Expressions in table proc arguments

Postby EViews Glenn » Tue Nov 27, 2012 8:11 am

Thanks for the suggestion.

DannyBachman
Posts: 5
Joined: Fri Apr 13, 2012 11:24 am

Re: Expressions in table proc arguments

Postby DannyBachman » Wed Feb 06, 2013 12:23 pm

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 "!"

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

Re: Expressions in table proc arguments

Postby EViews Gareth » Wed Feb 06, 2013 12:32 pm

Using a scalar object is effectively the same thing as using an expression. You can only use program variables, currently.
Follow us on Twitter @IHSEViews

EViews Jason
EViews Developer
Posts: 775
Joined: Tue Sep 16, 2008 3:50 pm

Re: Expressions in table proc arguments

Postby EViews Jason » Mon Mar 04, 2013 4:48 pm

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.


Return to “Suggestions and Requests”

Who is online

Users browsing this forum: No registered users and 1 guest