DropDown Event

Occurs when the list portion of a ComboBox control is about to drop down after the drop-down arrow is clicked.

PROCEDURE ComboBox.DropDown
[LPARAMETERS nIndex]

Parameters

You must include an LPARAMETERS or PARAMETERS statement in the event procedure and specify a name for each parameter; otherwise an error occurs. Visual FoxPro passes the DropDown event the following parameter:

  • nIndex
    Contains a number that uniquely identifies a control if it is in a control array.

Remarks

Use a DropDown event procedure to make final updates to the list portion of a ComboBox before the user makes a selection. This enables you to add or remove items from the list using the AddItem or RemoveItem method. This flexibility is useful if you want controls to interact at run time. For example, what you want to appear in the list portion of a ComboBox depends on what the user chooses in an OptionGroup.

See Also

AddItem Method | DownClick Event | RemoveItem Method

Applies To: ComboBox