PRB: "Variable <variable> is not found" Using #INCLUDE Files (156672)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 6.0
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.
WORKAROUNDMethod 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."
Modification Type: | Major | Last Reviewed: | 12/3/2003 |
---|
Keywords: | KB156672 |
---|
|