Including %program

For questions regarding programming in the EViews programming language.

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

fmgoto
Posts: 76
Joined: Thu Jan 15, 2009 5:01 am
Location: Brasilia, Brazil

Including %program

Postby fmgoto » Fri Apr 03, 2009 1:56 pm

Hey, is it possible to include sub-programs whose file name is defined as a string, such as %program? Thanks in advancde, Fabio

We are trying to work with:

%program = "" + %path + "/" + %filename + ""
include %program

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

Re: Including %program

Postby EViews Gareth » Fri Apr 03, 2009 2:04 pm

Unfortunately not.

The include statement is parsed by EViews before any other part of the program. Thus it is parsed before any string variables have been declared. Thus EViews won't recognise that string variable as being valid when it is parsing the include statement.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest