>I have coded a program in vfp50. The menu system
>has two items and they are:
>FILE EDIT
>Is there a way to turn off one of these items?
>Example: run code and get the menu to look like..
>EDIT
Robert,
You were on the right track.
Try this:
PUSH MENU _MSYSMENU
RELEASE PAD _MFILE OF _MSYSMENU
The File menu is now gone. Now when you want to restore the original:
POP MENU _MSYSMENU
FoxPro maintains its menu in what's referred to as a LIFO stack (Last In, First Out). The beauty of this is that it requires very little additional code (and certainly no special menu generators). The only problem might be in making sure that the PUSHes/POPS match up. You can use
SET SYSMENU TO DEFAULT
to restore the default configuration if there's a problem.
HTH,
George
George
Ubi caritas et amor, deus ibi est