Skip to content

Add_Form_To_List - ComboEntry

Adds the current form value to the combo list if it does not already exist

Type: Procedure

Syntax

Procedure Add_Form_To_List

Call Example

Send Add_Form_To_List

Description

The Add_form_to_list message adds the current form value to the combo list if it does not already exist. This would only be used with editable combo lists (entry_state is true). This provides an easy mechanism for adding new values to your combo list.

// when exiting add current value to list, unless it already exists
Procedure Exiting
    string sValue
    forward send exiting
    Get Value to sValue
    If (sValue<>"") begin
        Send Add_form_to_list
    end
End_procedure

See Also

entry_state | Combo_Add_Item | Combo_Insert_Item | Combo_Delete_Item | Combo_Item_Matching | Validate_Combo_Value | Combo_Item_Count | Combo_value