I have a tabhost with 11 tabs on it. Each tab has a variety of textboxes, radio buttons, checkboxes, etc.
Once I have uploaded the user entries to a database, I need to reset everything. Basically wiping the textboxes, unchecking checkboxes resetting spinners, etc.
Is there an easy way to do this without having to go to each and every item and put a line of code in to clear or reset it?
You can use something like this and do the same for each view type:
B4X:
Sub ClearEditText
For Each V As View In PanelMain 'Or what ever view it is located in
If V Is EditText Then
Dim e As EditText
e = V
e.Text = ""
End If
Next
End Sub
@margret, that is what I was hoping to avoid.
@Erel, this is the type of answer I was hoping for. I will try it tonight. Thanks! Oh, by the way, great product!