Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu appears after it has been removed and deleted
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00058606
Message ID:
00058840
Views:
34
>>>>>I was experimenting with menus interacting with my program. I was unsuccessful at what I tried to do so I gave up and went back to some other problems. When I went to build my executable, I removed the menus since they were still experimental. One of the menus appeared anyway. So I deleted the menus from my disk (I know its radical) but it still appears when my executable runs. The problem with it appearing is it has no options enabled and won't let me exit. It gives me the message "Can't quit Foxpro" when I click on the exit button. Any suggestion?
>>>>>
>>>>>Barbara Smith
>>>>>
>>>>>Barbara
>>>>
>>>>Barbara,
>>>>
>>>>After you removed the menus from the project, did you pack the project?
>>>>
>>>>George
>>>I don't think so. I just did a rebuild. How do you pack the project?
>>>Pardon my ignorance.
>>>
>>>Barbara
>>
>>Select Cleanup Project from the Project Menu. One other thing you might look for: When you deleted the menus, if you didn't delete the MPR or MPX files, they might also be the source of the problem.
>>
>>hth,
>>
>>George
>Thanks for the help, but no, it didn't make a difference. I deleted my files in DOS and I got everything that began with the same names. Any other suggestion?
>
>Thanks,
>Barbara Smith

Barbara,

If you do a rebuild all after removing the menus and packing the project, and they re-appear in the project, then they're out there some wheres. If you're prompted for a location, it's means that there's still a reference to them in the project. If neither is the case, you're probably dealing with the real FoxPro menu. If so, then you should create an "empty" menu and call it. Something like:

PUSH MENU _MSYSMENU
DO EMPTY.MPR

Then when you want to exit.

CLEAR EVENTS
IF NOT 'EXE' $ UPPER(VERSION())
POP MENU _MSYSMENU
ENDIF

This is the best I've got.

hth,

George
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform