Call Subroutines from different prg files

For questions regarding programming in the EViews programming language.

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

cantagallo
Posts: 13
Joined: Wed Feb 25, 2015 4:02 am

Call Subroutines from different prg files

Postby cantagallo » Wed May 13, 2015 4:05 am

I have trying to write a program where I'd like the main to be as clearer as possibile: given that I have several long subroutines, each of them representing a different model, is it possible to store each subroutine in a different prg file and then call them in the main prg one? As, for example, you can do in C++ with classes (and functions).

Thank you in advance

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: Call Subroutines from different prg files

Postby trubador » Wed May 13, 2015 5:00 am

Code: Select all

include first.prg include second.prg include third.prg ...

cantagallo
Posts: 13
Joined: Wed Feb 25, 2015 4:02 am

Re: Call Subroutines from different prg files

Postby cantagallo » Fri May 15, 2015 10:43 am

Great thank you very much!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests