MENU'S >> HOW TO USE SYS(1500) WITHIN A MENU PROCEDURE
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 SYS(1500,[_wmi_cascade],[_mwindow]) within the procedure as '_wmi_cascade' is no longer available as a 'SystemItemName'.
Quick fix - substitute a divider item name such as '_wmi_sp100' with '_wmi_cascade', thus ensuring it's available as a 'SystemItemName'.”
Enter the code shown: