This is a common question and for a good reason. Custom views classes are not views by themselves. The views tree only holds views. This means that this code cannot work: Dim B4XFloatTextField1 As B4XFloatTextField = CLV.GetPanel(x).GetView(y) The actual view that is added to the views tree...
www.b4x.com
This is the code you need:
B4X:
For Each tf As B4XView In Pane1.GetAllViewsRecursive
If tf.Tag Is B4XFloatTextField Then
Log(tf.Tag.As(B4XFloatTextField).Text)
Log(tf.Tag.As(B4XFloatTextField).Tag)
End If
Next
But you can also do it this way:
B4X:
For Each tf As B4XView In Pane1.GetAllViewsRecursive
If tf.Tag Is B4XFloatTextField Then
Dim xftf As B4XFloatTextField = tf.Tag
Log(xftf.Text)
Log(xftf.Tag)
End If
Next
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.