Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you include you config.fpw in you program files.
Message
 
À
04/05/1998 14:39:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00096797
Message ID:
00096832
Vues:
20
>>>I have made an EXE in vfp and I want to include the config.fpw with
>>>my program files. I want the users to be able to change one of the options in the config.fpw using their editor. The option I want the users to change is TITLE.
>>
>>Rob, you should include CONFIG.FPW with other files when you make your setup disks in Setup Wizard. You have the possibility to include your CONFIG.FPW into your EXE file, but in this case it is not possible to edit it, of course.
>>There is another way - your users may edit not CONFIG.FPW, but one of .H files (say USERDEF.H), where the your TITLE variable can be defined.
>>
>>Nick
>---
>Hi Nick
>How do I setup a userdef.h with the varaible of TITLE?
It is just a text file with

#define TITLE_LOC "My Application Name"

Usually it is done by including some file like APP.H which #INCLUDE all other possible .H files. It is easier to maintain it this way, so when you add new .H file to your app, you need just add a line
*** APP.H
#INCLUDE "FOXPRO.H"
#INCLUDE "myNewHeaderFile.H"
in your APP.H
But for those variables (or constants) to be visible through all your application you have to include it in all your classes and subclasses and .SCX files (and your start.prg and other PRGs too)
You may look at FOXPRO.H file as a sample. It is supplied with VFP.
"Include File" option is under VFP menu /Class (or /Form)

HTH,

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform