4D v14.3

Count menu items

Home

 
4D v14.3
Count menu items

Count menu items 


 

Count menu items ( menu {; process} ) -> Function result 
Parameter Type   Description
menu  Longint, MenuRef in Menu number or Menu reference
process  Longint in Process reference number
Function result  Longint in Number of menu items in the menu

The Count menu items command returns the number of menu items present in the menu whose number or reference is passed in menu.

If you omit the process parameter, Count menu items applies to the menu bar for the current process. Otherwise, Count menu items applies to the menu bar for the process whose reference number is passed in process.

Note: If you pass a MenuRef parameter in menu, the process parameter serves no purpose and will be ignored.

 
PROPERTIES 

Product: 4D
Theme: Menus
Number: 405

Not for server

 
HISTORY 

Modified: 4D v11 SQL

 
SEE ALSO 

Count menus

 
ARTICLE USAGE

4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)