Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Include Files
Message
De
21/03/2007 10:45:33
 
 
À
21/03/2007 10:36:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01206558
Message ID:
01206565
Vues:
13
Hi Andrew,

With your form (or class) open:

1) Click on the Form (or Class) menu option in the main VFP menu.
2) Click on "Include File"

You can view the path to the current include file there.

So
> 1 How can I find where form is finding the #define values from?

Menu: Form -> Include Files

Should display the current .h file being used for that form.

> 2 Why can't I use these #define values in my new class?

You can if you add them to a .h file and set that for each class by:

1) Opening the class
2) Menu: Class -> Include Files; browse to select your .h file.
3) Click OK and save your class

> 3 Why do I have to use the #include command in each method of my new class and not just the Init method?

That's just how classes/forms work I think. I think each method is treated as a stand alone procedure/function. The scope of each method ends once it has been run. So the #Includes you specify in the Init() end once the Init() ends.

If you have several includes to make I recommend creating a standalone .h file; make your #include declarations in there and add it to each class via the Class -> Include Files option.

Hope this helps.
Ben Sugden

"Remember to enjoy hunting - and that means relishing the search for the product that has never been advertised or placed handily at the front of the shop; Life begins on the uppermost shelf, avoid guide books and top 10's like the plague." - Ramsey Dukes
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform