Display contents of control variable

For questions regarding programming in the EViews programming language.

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

gopvan
Posts: 3
Joined: Fri Feb 04, 2011 3:22 am

Display contents of control variable

Postby gopvan » Mon Oct 27, 2014 7:35 pm

Hi...very basic question :(

How do I output a variable's contents. What I mean is, if a series is the output then a series object gets created. But what about a scalar ?

%b = "mom"

%a = "hi" + %b

I get on the status line %a computed.

Likewise, if I calculate !ans = @corr(x,y)

How do I see the output of a variable ?

if I have say FOR loop in my program I would like to see the value of the control variable each time. In a programming language I would say something like printf(i) to know what is the value. How would I do the same here. Should i use logmode ? Is there any other way to do this ?

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

Re: Display contents of control variable

Postby EViews Gareth » Mon Oct 27, 2014 7:57 pm

Store it in a workfile object (such as a scalar, a string, a table, etc...), or output it to the status bar with the statusline command.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests