Sharing parameters across programs files

For questions regarding programming in the EViews programming language.

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

adrian_d
Posts: 44
Joined: Wed Jan 29, 2014 6:08 am

Sharing parameters across programs files

Postby adrian_d » Wed Dec 03, 2014 5:01 am

Hi,
once I asked quite a similar question and got no answer, but maybe this time I will describe it in another context. My code got quite long and I wanted to split it into a few parts, and then have one short program that would execute all parts one by one after each other. But there is an obstacle of parameters (control variables) inside the program, that seem to me not shared across files. Is it any way to get around this thing?

thanks
adrian

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

Re: Sharing parameters across programs files

Postby EViews Gareth » Wed Dec 03, 2014 8:47 am

If you use include, rather than exec, the program variables will be shared.

adrian_d
Posts: 44
Joined: Wed Jan 29, 2014 6:08 am

Re: Sharing parameters across programs files

Postby adrian_d » Wed Dec 03, 2014 8:49 am

If you use include, rather than exec, the program variables will be shared.
Oh yeah, thanks!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest