[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
+---------------------------------+
| CNTPAD |
+---------------------------------+
CNTPAD(<expC>)
-----------------------------------
Returns number of pads in a menu.
Return value - Numeric
-----------------------------------
<expC>
Name of the menu.
+---------------------------------+
| Program Example |
+---------------------------------+
The example below uses CNTPAD() to count number of pads in FoxPro system
menu bar. If System pad is in menu bar, it is released. To restore
System menu bar to its default state, issue command 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: CNTBAR(), DEFINE MENU, DEFINE PAD
-----------------------------------
See Also:
CNTBAR()
DEFINE MENU
DEFINE PAD
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson