Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting a INCLUDE file into the application.
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Setting a INCLUDE file into the application.
Miscellaneous
Thread ID:
00271191
Message ID:
00271191
Views:
72
I have an application that need to use some variables that I defined in the INCLUDE.H file. In VFP 6, how can I Specifies the INCLUDE.H as a default header file included with user-defined classes, forms, or form sets?

_INCLUDE = "INCLUDE.H"

I use above on my main program but my classes still not able to find the variable in the INCLUDE.H. Each of my class do have the INCLUDE.H embeded in the CLASS, INCLUDE FILE messagebox.

When I run the project in VFP6 its say can't find the variable?

This app was written in VFP 5 with all the classes embeding the INCLUDE.H file. Using the VFP 5 project folder its run fine, but if this applicationis were to be opened in VFP 6 and using the VFP 6 project folder to run, it will says unable to find those variables.



To resolve it using VFP 6 I need to open the class and go to the MENU , CLASS, INCLUDE FILE and SAVE for each class I use for this application. Then it will work.

However, some of this class is the business object for my another application which is to be retain as VFP5 APplication. When I jump between these two apps I will need to do the above STEPS in order for the VFP6 app to run.

How can I run both the VFP6 or VFP 5 without facing any problems?
Scott McDaniel
MCP VFP Desktop
Next
Reply
Map
View

Click here to load this message in the networking platform