Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scope of header file
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00736219
Message ID:
00736509
Views:
16
I see. I'll have to look at this more some time. Until then, I'll take your word for it. :)

Dana

>PMFJI buy i see you are still on line.
>#INCLUDE is a compile time directive so it needs to be in each file at Compile Time
>regards
>>Sergey, correct me if I'm wrong, but if there is a "main" program, the startup, and the #INCLUDE is in that PRG, wouldn't it scope to all called modules under it?
>>
>>Dana
>>
>>>The scope of the header file is a PRG/class/form it's included in. You've to include header file in every PRG/class/form that uses it. In Class/Form you do that through menu Class/Form -> Include File ...
>>>
>>>>When I include a header file in a .prg the classes/forms I instantiate/call from this .prg don't know the defined variables in this header file.
>>>>
>>>>ie I've got a simple prg like this:
>>>>#INCLUDE "myheader.h"
>>>>public oApp
>>>>oApp = createobject('customClass')
>>>>
>>>>
>>>>In the init event of oApp i've this code
>>>>? cMyConstant
>>>>
>>>>cMyConstant is, of course, defined in myheader.h
>>>>
>>>>I get an error Variable cMyconstant is not found or something like that.
>>>>
>>>>I've studied tastrade but that didn't help.
>>>>
>>>>What am i missing here???
>>>>
>>>>tia, victor
Where's the damned Any Key?...too late
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform