Clearing Searchview

Bachrock

Member
Licensed User
Longtime User
Hi,

I am using the Searchview example downloaded from this website to make a selection. Then I have a button on the screen which is moving the selected data to another process. All this works great. However when the button is pushed I would like the current data shown in the Searchview box to be cleared out. How might I do this?

Thank You,

Paul:sign0085:
 

Mahares

Expert
Licensed User
Longtime User
Add this sub to your searchview class module:
B4X:
Public Sub ClearSearchBox    
    et.Text=""
End Sub

Then, inside your button click event sub in the main module add this line:
B4X:
sv.ClearSearchBox
 
Upvote 0

Bachrock

Member
Licensed User
Longtime User
Hi I used the sv.clearsearchbox as described above. This works great but I just discovered tonight that it affects a couple Buttons that I have on the screen. The buttons work great until I i run this code then the buttons stop working? I know it is this code because I can comment and uncomment this code and it comes and goes accordingly.

Any thoughts?

Thanks
 
Upvote 0
Top