SearchField.Pressed help

Ah, yes, the error message makes sense now. If you call two things with the same name (“name”) it assumes you’re trying to create a Control Set. But in a Control Set, all items must have the same Super. Hence the error message.

Try calling a method from the textChanged event on your text field.

1 Like

It seems you’re having the user search for a single record, so this may not apply to you.

I use the TextChanged event (as Philip suggested) to search (filter) a listbox. It changes the list with each character the user types in the SearchField, updating it with a SQL SELECT command. It’s amazingly fast. I have over 14,000 records (song titles) and it updates the list as fast as I can type. No buttons or Return or Enter.

I got the idea from the app “DB Browser for SQLite”, which is an excellent tool for DB testing. I’m not sure it’s available for Windows.