Check existence of page

For questions regarding programming in the EViews programming language.

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

sean123
Posts: 34
Joined: Wed Apr 25, 2012 11:53 am

Check existence of page

Postby sean123 » Fri Feb 12, 2016 3:24 am

Hi,

I am creating a script in which additional pages will be created for working with various frequencies. The only page the user needs to supply is a page with the daily frequency. However, if there is a page with the name "W" already, it will create "W1".

How do I check the existence of pages in the workfile? Ideally, I would like to select "W" if it exists, otherwise create it.
Also, is it possible to obtain the frequency used by the current page?

Thanks!

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

Re: Check existence of page

Postby EViews Gareth » Fri Feb 12, 2016 9:21 am


sean123
Posts: 34
Joined: Wed Apr 25, 2012 11:53 am

Re: Check existence of page

Postby sean123 » Fri Feb 12, 2016 10:31 am

Seems obvious now that you say it, but it wasn't in the list I was looking at (evidently the wrong one). But anyway, thanks!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest