Skip to content

Combo_Item_Count - ComboEntry

Returns the number of choices in the combo object's list

Type: Property
Access: Read-Only
Data Type: Integer
Parameters: None

Syntax

Property Integer Combo_Item_Count
Access Type Syntax
Read Access: Get Combo_Item_Count to IntegerVariable

Description

The Combo_item_count property returns the number of items in the combo object's list.

This sample shows all items in a combo list.

Procedure ShowAllValues
    string  sCurrent
    string  sValue
    integer i iItems
    Boolean bIsCurrent
    Get Value to sCurrent //  the current value of the combo form
    Get Combo_item_count to iItems
    For i from 0 to (iItems-1)
        Get Combo_value i to sValue // the value of each item in the form
        Move (sCurrent=sValue) to bIsCurrent
        Send ShowList i sValue bIsCurrent
    Loop
End_procedure
Col 1 Col 2
Note: This represents the item position in the internal list and not the Windows list. If the Windows list is sorted, these positions will be different.

See Also

Combo_value | Combo_add_item | Combo_Insert_Item | Combo_Delete_Item | Combo_Item_Matching | Validate_Combo_Value | Add_Form_to_List