CountGadgetItems()

Syntax

Result = CountGadgetItems(#Gadget)

Description

Returns the number of items in the specified #Gadget. The first item index is starting from 1. If the #Gadget doesn't contain any items, 0 is returned. This is a universal function which works for all gadgets which handle several items:

- ListViewGadget()
- ListIconGadget()
- PanelGadget()
- ComboGadget()
- TreeGadget()

Supported OS

Windows, AmigaOS, Linux

Gadget - Index