hi
i have a panel with 2 views EditText1 (tag=v1) and B4XFloatTextField1 (Tag= v2)
How to I get a B4XFloatTextField1 from GetAllViewsRecursive of a panel ?
By code do somethings as following code
thank's
i have a panel with 2 views EditText1 (tag=v1) and B4XFloatTextField1 (Tag= v2)
How to I get a B4XFloatTextField1 from GetAllViewsRecursive of a panel ?
By code do somethings as following code
thank's
B4X:
Dim pn As Panel
For Each v As B4XView In pnItem.GetAllViewsRecursive
Select NULL2EMPTYSTR(v.Tag )
Case "v1"
v.as(EditText).Text ="testo 1"
Case "v2" ' never entry in this point
v.Text ="testo 2"
End Select
next
Sub NULL2EMPTYSTR(xVal As String) As String
Dim sf As StringFunctions
If xVal = Null Or sf.IsEmpty(xVal) Or xVal = "null" Then
Return ""
Else
Return xVal
End If
End Sub