Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read Events in the menu
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01059682
Message ID:
01059686
Views:
10
>I'm taking over on a project and at first glance at the code, I thought the programmer had put the menu in a loop and "rolled his own" READ EVENTS. However, I later noticed a CLEAR EVENTS and you don't call that without a READ EVENTS, so I found the CLEAR EVENTS in an unexpected place (to me, at least). It was in the cleanup code of the menu. Just wondering . . . anybody seen this done? Any advantages (I wouldn't think so). I always put it in the main (startup) program.
>
>Russell Campbell



You can put CLEAR EVENTS anywhere you want to exit. So it is technically OK to put it in the Exit or Quit option in the menu, but a little strange in the cleanup menu code. I still prefer to do it in a PRG as you mention so you can call it from anywhere and basically always goes back to your PRG for cleanup.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform