Article ID: 156672
Article Last Modified on 12/3/2003
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition
- Microsoft Visual FoxPro 3.0b Standard Edition
- Microsoft Visual FoxPro 5.0 Standard Edition
- Microsoft Visual FoxPro 6.0 Professional Edition
This article was previously published under Q156672
SYMPTOMS
If a predefined constant is referenced in a class or form, the following
error message may be displayed:
Variable "<variable>" is not found..
<Cancel> <Suspend> <Ignore> <Help>
CAUSE
The header file of predefined compile-time constants has not been properly
included in the class or form.
WORKAROUND
Method 1
Include the header file in class or form using the following steps:
- Open the class or form.
- From the Class or Form menu, choose Include File.
- In the Include File dialog box, specify the header file in the Include
File text box or choose the three-dot button to open the Include dialog
box and choose the file.
Method 2
Insert the #INCLUDE in the application menu's general options, in the menu
setup snippet.
Method 3
In every event or method on the class or form that references the
predefined constant, reissue the #INCLUDE "<filename>".
STATUS
This behavior is by design.
REFERENCES
Developer's Guide, page 228.
Visual FoxPro Help file: search on: "#INCLUDE preprocessor directive" and
"#DEFINE ... #UNDEF preprocessor directive."
Additional query words: kbdsd VFoxWin
Keywords: KB156672