Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you include you config.fpw in you program files.
Message
From
04/05/1998 15:51:42
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00096797
Message ID:
00096847
Views:
23
>>>>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
>>---
>>OK - what are the steps.
>>1. add title.h to the programs project and compile
>>2. add #include "title.h" to the main.prg
>> title.h has...#define TITLE_LOC "My Application Name"
>>3. in the main.prg... code
>> oapp.caption (title_loc)
>>is this all - it only seems to work once. when I change the #define TITLE_LOC
>>in title.h, it does not show the change.
>
>Rob, check how TITLE.H is shown in project as included or excluded?
>In your case you need it to be Excluded from the project (VFP menu/Project/Exclude)
---
are you saying, I need to have the TITLE.H in the project, but mark it as
EXCLUDED? I did not have the TITLE.H in the project at all. :)
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform