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 
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist