Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activating the Menu
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00581846
Message ID:
00582115
Views:
17
>Is there a way in code to make a menu drop down, or select a menu option from code.
>
>Reason: Just playing around with the speech stuff as presented in the FoxPro Advisor.
>
>Example: User says File Exit, I want to call the File | Exit menu option.
>
>Certainly not life-matter stuff here, just curious?
>
>Thanks
>

Kirk,
You can play around with the SYS(1500) function. The following will shut down VFP:

sys(1500,'_MFI_QUIT','_MSM_FILE')

You will have to find the item name and pad name of your custom application menu for it to work. CHeck out the VFP Help for more information.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform