AutoCompleteEditText declared with the wrong type

cjack3

Member
Hi everyone. I'm currently using my friend's machine to create my app. I'm trying to implement a method to search my listviews ( I have a lot in my app). Another member of the forums recommended that I use an AutoCompleteEditText to search the listviews.

I've tried to use it, but am facing a problem where it says that my AutoEditCompleteText is declared using the wrong type. I checked it a few times, and I don't think I declared it wrong anywhere. Could anyone check it for me please? *Sorry, I don't think I should attach the zip file of the project. It has a ton of files, and the total size is about 9MB++. So, I'll be posting bits of the code where the AutoCompleteEditText was used.

B4X:
Dim Textbox As AutoCompleteEditText

B4X:
Textbox.Initialize("")

B4X:
Textbox.ForceDoneButton = True

B4X:
Textbox.SetItems(Wordlist)

B4X:
Sub Button1_Click
Textbox.Text=""

On a side note, does this bit of code work? (I haven't been able to test it since it keeps giving me the error that it was declared with the wrong type)

B4X:
Wordlist.AddAll(ListView2)
Wordlist.AddAll(ListView3)
Wordlist.AddAll(ListView4)
Wordlist.AddAll(ListView5)
Wordlist.AddAll(ListView6)
Wordlist.AddAll(ListView7)
Wordlist.AddAll(ListView8)
Wordlist.AddAll(ListView9)
Wordlist.AddAll(ListView10)
Wordlist.AddAll(ListView11)
Wordlist.AddAll(ListView12)
Wordlist.AddAll(ListView13)
Wordlist.AddAll(ListView14)
Wordlist.AddAll(ListView15)
Wordlist.AddAll(ListView16)
Textbox.SetItems(Wordlist)

Thanks for the help!
 
Top