Read table entry

For questions regarding programming in the EViews programming language.

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

lgehrig
Posts: 16
Joined: Fri Mar 17, 2017 8:10 am

Read table entry

Postby lgehrig » Wed May 31, 2017 7:36 am

Hello fellow users, hi Gareth

I'm using table objects in EViews to manage settings that I later use in my analysis. This serves as kind of a GUI in which I can switch out specific model parameters and keep track of the specification I am running.

While everything works, I find the way I'm extracting table entries (variable names) complicated (especially when the table name is then replaced by a string variable):

'MAKE STRING TO READ
string entry=tableobj(1,1)
'READ THE STRING
%readentry={entry}

Repeated over a dozen times for all table entries this produces countless string variables and becomes hard to read. Do you see an easier way of doing this in EViews?

Thanks for your ideas!

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

Re: Read table entry

Postby EViews Gareth » Wed May 31, 2017 7:57 am

Code: Select all

%readentry = tableobj(1,1)
?


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest