[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
+---------------------------------+
|             GETPAD              |
+---------------------------------+
GETPAD(<expC>, <expN>)

-----------------------------------
Returns name of menu pad from its position in menu bar.
Return value - Character
-----------------------------------

GETPAD() lets you determine the position of a pad in a menu bar.  Pads
in a menu bar may be added, removed or rearranged.  Use DEFINE PAD to
add a pad to a menu bar or RELEASE PAD to remove a pad.

<expC>
        Menu name.

<expN>
        Position of menu pad in menu bar.

+---------------------------------+
|         Program Example         |
+---------------------------------+
This program uses GETPAD() to test if System menu pad is on FoxPro
system menu bar.  If it is, it is released.  To restore System menu bar
to its default state, issue SET SYSMENU DEFAULT.

FOR count = 1 TO CNTPAD('_msysmenu')  && Number of pads
        IF PRMPAD('_msysmenu', GETPAD('_msysmenu', count)) = 'System'
                RELEASE PAD (GETPAD('_msysmenu', count)) OF _msysmenu
                EXIT
        ENDIF
ENDFOR

-----------------------------------

See Also:  GETBAR()

-----------------------------------

See Also: GETBAR()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson