Good time to ask this question, because I'm also having a go at using the Include instruction these days
. Before I did anything substantial with it I made sure the compiler could compile a simple program containing an include statement, and that worked all right. When I tried the compiler again now, this time with the actual application I'm working on, the result was not successful.. I made some experiments to see what the problem could be; apparently one thing the compiler can't handle is assigning values from the main program to included Global variables.
Well, looking over my initial test once more it seems even the simple test program crashes when running the compiled version, although the compiler didn't complain. So I guess the conclusion must be that the compiler, in its current state, doesn't support Include statements at all.. :/ I can get around this problem in my current project by using copy/paste when the program is done, because I don't need the compiler for performance testing or similar during development. Maybe that could work for you too?
Personally what's bothered me most about Include (during my 2-3 weeks of experience, that is) is that closing procedures with F9 doesn't work properly with it.. :S (All code beneath the Procedure statement (also that not belonging to the procedure) sometimes get closed within the procedure. Running (and especially saving) a program in such a state is not particularly recommended).