Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use SYS(1500) within a menu procedure

Menus

How to use SYS(1500) within a menu procedure

by  ChrisRChamberlain  Posted    (Edited  )
There may be occasions when you need to activate a Visual FoxPro system menu item from a procedure within a menu.

Taking 'Ca\<scade' from '_mwindow' as an example, by creating a procedure for this particular menu option, you negate your ability to use
Code:
[color blue]SYS(1500,[_wmi_cascade],[_mwindow])[/color]
within the procedure as '_wmi_cascade' is no longer available as a 'SystemItemName'.

Quick fix - as a divider in non selectable, substitute a divider item name such as '_wmi_sp100' with '_wmi_cascade', thus ensuring it's available as a 'SystemItemName'.

FAQ184-2483 - answering getting answered.​
Chris [pc2]
[link http://www.pdfcommander.net]PDFcommander.com[/link]
[link http://www.pdfcommander.net]PDFcommander.co.uk[/link]
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top