Activates a Visual FoxPro system menu item.
SYS(1500, cSystemItemName, cMenuName) |
Parameters
- cSystemItemName
- Specifies the name of the Visual FoxPro system menu item to activate.
- cMenuName
- Specifies the name of the Visual FoxPro system menu or submenu containing the menu item.
Return Value
Character
Remarks
See System Menu Names for a list of Visual FoxPro menu and menu item names. You can also use SYS(2013) - System Menu Name String to display a list of Visual FoxPro menu and menu item names.
User-defined menu items and disabled system menu items cannot be activated with SYS(1500).
SYS(1500) returns the empty string.
Example
The following example uses SYS(1500) to paste a command into a program file.
В | Copy Code |
---|---|
_CLIPTEXT = "MESSAGEBOX('TEST')" && Command to paste MODIFY COMMAND myprog NOWAIT && Open a program file SYS(1500, '_MED_PASTE', '_MEDIT') && Paste menu item |