Hi,
As the code you posted, the header file only "applied" to the callform.prg but not the form class. It you want to do it, you may try to
DEFINE CLASS oform AS Form
#INCLUDE "XXX.H"
ENDDEFINE
I am not sure it can work or not, but if u define the class using class designer, you can include the header file by key in the path of header by from menu Class->Inlude File ...
HTH
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...