Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Include files and constants?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00041459
Message ID:
00041677
Views:
34
>I have an include file with some constants. In particular, MSG_ERROR is defined in this include file. I have a form class. In the form class I include that include file. I create a form based on the formclass. Some of the code in the form is "WAIT WINDOW MSG_ERROR". When this code is encountered I get, "Variable 'MSG_ERROR' is not found." I figured I forgot to compile everything. So, I did that. Same error. Perhaps the include file needs to be in the form also? I did that and recompiled everything. Same error. This is rather odd and I'm stymied on what to do next.

Michael,

After you add the include file to the form (which you must do) be sure to recompile the form. Thsoe cosntants are compiler resolved not runtime resolved.
Previous
Reply
Map
View

Click here to load this message in the networking platform