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

alain bertrand

Member
Licensed User
Longtime 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.
 
Top