ComponentOne List 8.0 for ActiveX
Mismatch Event

 

Mismatch Event

The Mismatch event is triggered whenever the user enters a value in the text portion of a combo box that is not found in the list portion.

Syntax

TDBCombo_Mismatch (NewEntry As String, Reposition As Integer)

Arguments

NewEntry is a string representing the text that was entered by the user but not found in the list.

Reposition is an integer that may be set to False in order to prevent the current row from moving back to the top of the list when a mismatch has been typed.

Remarks

Event applies to TDBCombo control.

By default, Reposition is 0 - True, which resets the current row back to the top of the list portion when the event is fired.

If you set Reposition to 1 - False, and the combo cannot locate NewEntry, the current row remains unchanged when this event is fired.

Note: This event is only fired when the LimitToList property is True and the ComboStyle property is set to 0-  Dropdown Combo or 1- Simple Combo .

See Also

TDBList and TDBCombo Controls

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback