Android Question EqualsIgnoreCase

dibesw

Active Member
Licensed User
Longtime User
HI,
I have this problem:
this is my list

AMEDEO
ANNA
GIORGIO
NICOLA
PAOLO
....

I have to find a item that StartsWith e.g. EditText1.Text="A"
code is
B4X:
If ST.StartsWith(EditText1.Text)=True Then
result is
AMEDEO
ANNA
and it's ok
but if EditText1.Text="a" there is not result
I'm trying EqualsIgnoreCase whith this
B4X:
If EditText1.Text.EqualsIgnoreCase(ST.StartsWith(EditText1.Text)) Then
but don't works.
Which is the combination of StartsWith and EqualsIgnoreCase.
Thanks
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…