Page 1 of 1

Call Subroutines from different prg files

Posted: Wed May 13, 2015 4:05 am
by cantagallo
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

Re: Call Subroutines from different prg files

Posted: Wed May 13, 2015 5:00 am
by trubador

Code: Select all

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

Re: Call Subroutines from different prg files

Posted: Fri May 15, 2015 10:43 am
by cantagallo
Great thank you very much!