Skip to content

Combo_Delete_Item - ComboEntry

Removes a Combo item from the list of values in a combo object

Type: Procedure

Parameters

Parameter Type Description
iItem Integer The item number

Syntax

Procedure Combo_Delete_Item Integer iItem

Call Example

Send Combo_Delete_Item iItem

Description

The Combo_delete_item procedure removes a Combo item from the list of values in a combo object

You should use the Combo_Item_matching function to determine the position of a value in your data-list

This function removes a value from the combo list and returns true if the item existed:

Function RemoveValue string sValue Returns Boolean
    integer iPos
    Get Combo_Item_Matching sValue to iPos // find the value in the list
    If (iPos>=0) Begin
         Send Combo_Delete_Item iPos
    End
    Function_return (iPos>=0)
End_function
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_Item_Matching | | Combo_add_item | Combo_Insert_Item | Combo_Item_Count | Combo_Value | Validate_Combo_Value | Add_Form_to_List