Android Question How to check if all EditText of a panel are filled?

alain bertrand

Member
Licensed User
I wish a "Save" button checks if all the mandatory fields of a panel are not null before saving.
Something like:
B4X:
For Each v As View in pnlPanel1.GetAllViewsRecursive 'iterate panel's views
    If v Is EditText Then
        If v.Text.Trim.Lenght=0 Then ' <-- Here
            MsgBox...
            v.RequestFocus... Return (don't save)
        End If
    End If
Next
How to retrieve the v.Text of the v object for further use?
Thanks for your help.
 

Similar Threads

  • Article
Android Code Snippet Change CheckBox colors
Replies
0
Views
4K
  • Locked
  • Article
Android Tutorial Google Maps
Replies
195
Views
114K
  • Article
Android Code Snippet EditText Utils
Replies
10
Views
11K
Top