Page 1 of 1

Doing everything in a script on two pages

Posted: Wed Oct 30, 2019 7:46 am
by miorinnovo
Hi,

I have script that does what I need done. Is there a way to have it run through a second time but on a second page at a different frequency?

Thanks a lot!

Re: Doing everything in a script on two pages

Posted: Wed Oct 30, 2019 8:27 am
by EViews Gareth
Question is a little ambiguous, but you can use @pageselect to change the active page.

Re: Doing everything in a script on two pages

Posted: Wed Oct 30, 2019 10:46 am
by miorinnovo
ok, so say I have 10 lines of code, i'll add @pageselect to the 11th line to chose another page. Then, how do I have the program run lines 1 through 10 again on the second page?

Thanks

Re: Doing everything in a script on two pages

Posted: Wed Oct 30, 2019 10:49 am
by EViews Gareth
Either a for loop, or use a subroutine.

Re: Doing everything in a script on two pages

Posted: Fri Nov 01, 2019 7:21 am
by miorinnovo
thanks, i'll do this:

Code: Select all

for !i=1 to 2 series x{!i}=nrnd all my code delete x{!i} pagecreate m 1990 2019