Modifying a MPR file
Hi,
I need help, I have to modifiy a VFP 6.0 application and everytime I edit the MPR file I lose my changes, What I do is open the file, then I change some captions, then I compile the file and that's all. When I build the exe file, all my changes disappeared.
What am I doing wrong?
Could you help me?
Thanks in advance!
[343 byte] By [
Nora] at [2008-2-4]
The menu designer automatically calls GENMENU.PRG to generate an MPR file for you for each menu in your poject. Since this is an auto-generated program, it is not designed to be modified. So either do not modify it, or remove the menu from the project and add the MPR file as a program after it has been created once.
Nora,
An MPR file is a text file, produced by the menu generator. You normally do not modify an MPR. When you compile (or build) and the menu generator runs, the MPR is overwritten.
Any particular reason why you need to change it?
One good way to have more control s to use GenMenuX instead of the default genMenu as your menu generator.
If you don't have it, you can get GenMenuX at:
http://www.aksel.com/genmenux/
Then all you have to do is change the value of the _GENMENU memvar to point to this file instead.