Skip to content

OnFill - cWebCombo

Fires whenever the combo list is to be filled

Type: Event

Syntax

Procedure OnFill

Description

Fires whenever the combo list is to be filled. Use AddComboItem to add items to the combo list manually.

Send the Refill to trigger OnFill event and populate the combo list.

Sample

This sample shows how to add 3 items to a cWebCombo control that is not bound to a table column.

Object oFilterCombo is a cWebCombo
    Set psLabel to "Filter on:"

    Procedure OnFill
        Forward Send OnFill

        Send AddComboItem "" "None"
        Send AddComboItem "NUMBER" "Number"
        Send AddComboItem "NAME" "Name"
    End_Procedure
End_Object