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:47:17
 
 
To
04/05/1998 15:42:16
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00096797
Message ID:
00096845
Views:
21
>>>>>>>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
>>>>>
>>>>>I guess it would be reasonable to set something like TITLE= (empty) in Config.fpw and then program will set _SCREEN.Caption based on some setting storing in config.dbf with appropriate app utility to change it.
>>>>---
>>>>Hi Edward
>>>>When I change the CONFIG.FPW with Notepad, I am not seeing the change when I run the program.exe Is the program not calling the CONFIG.FPW?
>>>
>>>Exe will always look for Config.fpw in the same folder. If title change is not reflected, the reasons maybe following:
>>>1. You included some Config.fpw in Exe itself.
>>>2. Your code overrides title (_SCREEN.Caption) after app get started.
>>---
>>it is working with config.fpw, but I can only get the title to work
>>once using the header file. I am using title.h and when I change the
>>define statement (#define TITLE "mytitle", it will only change the title once. I call the title in main.prg with oapp.caption (TITLE).
>
>and what is your question? I didn't recommend you '.h' stuff so you shouldn't take me responsible here :)
---
I don't, I just thougt you may be up on it. You know me, I like to know all the ways to do something. You were right. I had included the config.fpw in my EXE.
I took it out and simply included it as a file in the directory were the exe lives. I can now change the TITLE to whatever... thanks again :)
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Reply
Map
View

Click here to load this message in the networking platform