GetItems(returns number of popup entries)

Top  Previous  Next

 

GetItems(onlyitems)

The GetItems method returns the number of entries that exist in the current active popup menu.

The onlyitems parameter (DEFAULT=0) specifies that only the number of popup items is returned. If non-zero, GetItems also returns the depth (nested) levels of the popup menu.

Return Data Type:     SHORT

Example:

      IF Popup.GetItems() ! Only if there are previous items.

         Popup.AddItem('-','Separator1',Popup.GetItems(),1)

      END