Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scope of header file
Message
From
27/12/2002 18:33:34
Victor Verheij
International Film Festival Rotterdam
Rotterdam, Netherlands
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Scope of header file
Miscellaneous
Thread ID:
00736219
Message ID:
00736219
Views:
50
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
Next
Reply
Map
View

Click here to load this message in the networking platform