SYS(1500) - Activate a System Menu Item 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