property Items.ChildCount (Item as HITEM) as Long

Retrieves the number of children items.

TypeDescription
Item as HITEM A long expression that indicates the item's handle.
Long A long value that indicates the number of child items.

Use the ChildCount property checks whether an item has child items. Use the ItemChild property to get the first child item, if there is one, 0 else.