property UnboundHandler.ItemsCount (Source as Object) as Long
Gets the number of items.

TypeDescription
Source as Object The control that requires the number of items
Long A Long expression that specifies the number of items in unbound mode.
The ItemsCount property specifies the number of items in unbound mode.

The following VB sample shows how ItemsCount property can be implemented:

Private Property Get IUnboundHandler_ItemsCount(ByVal Source As Object) As Long
    IUnboundHandler_ItemsCount = 20000
End Property

The following VB/NET sample shows how ItemsCount property can be implemented:

Public ReadOnly Property ItemsCount(ByVal Source As Object) As Integer Implements EXCOMBOBOXLib.IUnboundHandler.ItemsCount
    Get
        ItemsCount = 20000
    End Get
End Property

The following C# sample shows how ItemsCount property can be implemented:

public int get_ItemsCount(object Source)
{
    return 1000000;
}

The following VFP sample shows how ItemsCount property can be implemented:

function IUnboundHandler_ReadItem(Index, Source, ItemHandle)
    With Source.Items
        .CellCaption(ItemHandle, 0) = Index + 1 
    EndWith
endfunc