>>Dan,
>>
>>I remember trying this in the past. I had no luck either.
>>
>>According to the help, this is normal behaviour
>>
>>
Only the #DEFINE ... #UNDEF and #IF ... #ENDIF preprocessor directives are recognized in a header file. Comments and Visual FoxPro commands included in a header file are ignored.
>>>>
>>You'll have to change
>>
#INCLUDE includefile.prg
>>into
>>
=includefile()
>>or
>>=FunctionNameInIncludefile()
>>
>>so that the code will execute
>
>Of course, this is not the same as the behavior a programmer might expect from the #INCLUDE (but which doesn't actually work). The main problem is with variables defined in the thusly "included" procedure.
Not if you look at the original message ;-)
Gregory