devxlogo

Validating Text Entries When a DataCombo Loses Focus

Validating Text Entries When a DataCombo Loses Focus

When setting focus to another control, the DataCombo in Sheridan’sData Widgets can be forced to validate the text portion against its listby referencing the DataCombo’s IsItemInList property as follows:

 If Not DataCombo1.IsItemInList Then 'Check if item is in list MsgBox "Invalid Data Entered" 'If not, display an error 'then do some additional processing End If 

devx-admin

Share the Post: