Hello,
I'd like to write a program that updates graphs in 2 or more existing workfiles pages. I've already searched on EViews Command & Programming, but I've got no clue! Is it possible to do it or do I have to write one program for each workfile?
I'm using EViews 7.1.
Thanks for your help!
Changing WF pages in Programming
Moderators: EViews Gareth, EViews Moderator
-
- EViews Developer
- Posts: 2672
- Joined: Wed Oct 15, 2008 9:17 am
Re: Changing WF pages in Programming
I think this should do it for you...
Pageselect
Make the specified page in the default workfile the active page.
Syntax
pageselect pgname
where pgname is the name of a page in the default workfile.
Examples
pageselect page2
changes the active page to PAGE2.
Cross-references
See also wfselect.
Pageselect
Make the specified page in the default workfile the active page.
Syntax
pageselect pgname
where pgname is the name of a page in the default workfile.
Examples
pageselect page2
changes the active page to PAGE2.
Cross-references
See also wfselect.
-
- Posts: 14
- Joined: Wed Apr 25, 2012 7:34 am
Re: Changing WF pages in Programming
Glenn,
thank you so much! It has perfectly worked!
thank you so much! It has perfectly worked!
Re: Changing WF pages in Programming
More sophisticated issue, however on the same area.
Is there any posibility for Eviews6 programs to navigate between pages without hard coded page names. I would like to have a program, which gets series name from workfile and creates trendline from x12 seasonal adjustment on different samples, like in following code:
Additionaly i would like to store this bunch of series on a different workfile page. I know the name of destination page, just like that:
Unfortunately i do not know how to come back to the source page. Is there any command which could help me (e.g. transfering page name to string)?
I am working on EVIEWS 6
EDIT: I know i can pass the page name as a 2nd argument of program, still come on it is inconvenient.
Is there any posibility for Eviews6 programs to navigate between pages without hard coded page names. I would like to have a program, which gets series name from workfile and creates trendline from x12 seasonal adjustment on different samples, like in following code:
Code: Select all
!forecastPeriods= @obs({%0})
%prefix = "x12_"
FOR !i = 0 TO !forecastPeriods/2
SMPL @first @last - !i
%name = %prefix + @str(!i)
{%0}.x12(mode="a", save="d10 d12") {%name}
NEXT
Additionaly i would like to store this bunch of series on a different workfile page. I know the name of destination page, just like that:
Code: Select all
pagecreate(byid, page="x12_seas") @date
Unfortunately i do not know how to come back to the source page. Is there any command which could help me (e.g. transfering page name to string)?
I am working on EVIEWS 6
EDIT: I know i can pass the page name as a 2nd argument of program, still come on it is inconvenient.
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13318
- Joined: Tue Sep 16, 2008 5:38 pm
Return to “General Information and Tips and Tricks”
Who is online
Users browsing this forum: No registered users and 30 guests