次の方法で共有


SYS(1500) - Activate a System Menu Item

Activates a Visual FoxPro system menu item.

SYS(1500, cSystemItemName, cMenuName)

Return Values

Character

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.

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.

_CLIPTEXT = "MESSAGEBOX('TEST')"  && Command to paste
MODIFY COMMAND myprog NOWAIT  && Open a program file
SYS(1500, '_MED_PASTE', '_MEDIT')  && Paste menu item

See Also

SYS(2013) - System Menu Name String | System Menu Names | MODIFY COMMAND Command | _CLIPTEXT System Variable