I have a piece of fully-functional code that has the structure illustrated as File X (see attached). I want to transfer the subroutines to an Include file and reference it. I'm not sure how to handle the Module. I have actually created File Y & File Z, as illustrated.
File Y compiles w/o errors.
Compile File Z has 4 errors:
For example, regarding the 1st line (Module Share) in File Y: This statement is positioned incorrectly and/or has syntax errors.
It seems not to like the Module being out in the include file.
Is this enough to give any clues as to what might be going on? Has anyone ever tried to do this?