AndrewMozley
Programmer
I am learning about menus in VFP9. I can create a menu and run it to invoke a screen. Have noticed several things.
1. If I am creating or modifying a menu, then when I wish to make it available for use, I click on Menu | Generate. This the creates a file MyMenu.mpr so that I can then key in DO Mymenu.mpr. That works fine. If I subsequently modify the menu, generate it again, that appears to work OK, giving me the mymenu.mpr file with a new datestamp.
But when I again key in DO mymenu.mpr, I am getting the original unmodified menu displayed. The only way I have found round this (by trial and error) is to delete the file called MyMenu.mpx before generating the menu. If I do that the modified menu is correctly displayed. Why is this, and is there a way round this feature?
2. When I display my menu, it always gets a Format option tacked on whenever the cursor is in the command window. Why is this?
3. What is the best way of exiting from a menu? I have tried including an Exit selection, with associated command RETURN, but that has the effect of exiting from my VFP session, which I do not want (Although that would perhaps be fine if I was running the menu outside of the VFP development environment.
Thanks. Andrew M.
1. If I am creating or modifying a menu, then when I wish to make it available for use, I click on Menu | Generate. This the creates a file MyMenu.mpr so that I can then key in DO Mymenu.mpr. That works fine. If I subsequently modify the menu, generate it again, that appears to work OK, giving me the mymenu.mpr file with a new datestamp.
But when I again key in DO mymenu.mpr, I am getting the original unmodified menu displayed. The only way I have found round this (by trial and error) is to delete the file called MyMenu.mpx before generating the menu. If I do that the modified menu is correctly displayed. Why is this, and is there a way round this feature?
2. When I display my menu, it always gets a Format option tacked on whenever the cursor is in the command window. Why is this?
3. What is the best way of exiting from a menu? I have tried including an Exit selection, with associated command RETURN, but that has the effect of exiting from my VFP session, which I do not want (Although that would perhaps be fine if I was running the menu outside of the VFP development environment.
Thanks. Andrew M.