Hello
I have a sub that search data from sqlite, using EditText view,
when the user add text (character by character) my sub call this function.
This solution does not run very well on many devices (poor cpu, for example)
How I can create a delay in EditText change event, I do not want add a button for make search.
My sub its as follow:
Sub EditTextSearch_TextChanged (Old As String, New As String)
CustomListViewDocuments.Clear
If EditTextSearch.Text.Trim <> "" Then
CargaDocumentosDb(EditTextSearch.Text.Trim)
Else
CargaDocumentosDb("")
End If
End Sub
Thanks in advance!
I have a sub that search data from sqlite, using EditText view,
when the user add text (character by character) my sub call this function.
This solution does not run very well on many devices (poor cpu, for example)
How I can create a delay in EditText change event, I do not want add a button for make search.
My sub its as follow:
Sub EditTextSearch_TextChanged (Old As String, New As String)
CustomListViewDocuments.Clear
If EditTextSearch.Text.Trim <> "" Then
CargaDocumentosDb(EditTextSearch.Text.Trim)
Else
CargaDocumentosDb("")
End If
End Sub
Thanks in advance!