| Author |
how to diaplay no result found
|
deepika deepi
Ranch Hand
Joined: Jan 23, 2012
Posts: 199
|
|
hi ,
i want to display a command in the coding "No Result Found" if the data does not exists in the coding while searching. how to display that command ? can any one tell this ?
|
 |
Deepak Bala
Bartender
Joined: Feb 24, 2006
Posts: 6588
|
|
|
I cannot tell what your code is trying to do because it is difficult to read. Have you considered using a Toast ?
|
SCJP 6 articles - SCJP 5/6 mock exams - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
|
 |
deepika deepi
Ranch Hand
Joined: Jan 23, 2012
Posts: 199
|
|
|
i have an query to search the data from an string. and i get the results for what queries that exists in the string. but it does not give any result if the data does not exists in the system. want to make that display. i am trying to use that result in the code. but it does not work or shows some error. i am not sure where to use the code. till i used i have used it in "if" case (i.e) after the if case i have used an "else" statement for displaying that result. but it does not work.
|
 |
Swastik Dey
Ranch Hand
Joined: Jan 08, 2009
Posts: 1188
|
|
Deepika,
Do you mean in each keypress it searches the array and if a match is found starting with those characters it displays the matched result or else it displays no result found?
|
Swastik
|
 |
deepika deepi
Ranch Hand
Joined: Jan 23, 2012
Posts: 199
|
|
|
ya exactly that is the case
|
 |
Swastik Dey
Ranch Hand
Joined: Jan 08, 2009
Posts: 1188
|
|
Deepika,
Could you please try this once
main.xml
-----------
|
 |
deepika deepi
Ranch Hand
Joined: Jan 23, 2012
Posts: 199
|
|
|
ya the code works fine. thank you
|
 |
Swastik Dey
Ranch Hand
Joined: Jan 08, 2009
Posts: 1188
|
|
|
You are welcome.
|
 |
 |
|
|
subject: how to diaplay no result found
|
|
|