[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

     MenuItem(<cCaption>, <expData>, [<nShortcut>],
        [<cMessage>], [<nID>]) --> oMenuItem

 Arguments

     <cCaption> is a character string that contains either a text string
     that concisely describes the menu option or a menu separator specifier.
     This value is assigned to the MenuItem:caption instance variable.

     <expData> is a value that contains either a code block or a
     PopUpMenu object.  This argument is ignored when <cCaption> contains a
     menu separator specifier.  This value is assigned to the MenuItem:data
     instance variable.

     <nShortcut> is an optional numeric inkey value that indicates the
     shortcut key combination that selects and launches the menu selection.
     The default is 0.  This value is assigned to the MenuItem:shortcut
     instance variable.  Constant values for various key combinations are
     defined in Inkey.ch.

     <cMessage> is an optional character string that indicates the text
     to display on the status bar when the menu item is selected.  The
     default is an empty string.  This value is assigned to the
     MenuItem:message instance variable.

     <nID> is an optional numeric value that uniquely identifies the menu
     item.  The default is 0.  This value is assigned to the MenuItem:id
     instance variable.

 Returns

     Returns a MenuItem object when all of the required arguments are
     present; otherwise, MenuItem() returns NIL.

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson