Android Question [Solved] B4XView - Types do not match

LucaMs

Expert
Licensed User
Longtime User
B4X:
    For Each xv As B4XView In pnlFTFs.GetAllViewsRecursive
        If xv Is B4XFloatTextField Then
            Dim ftf As B4XFloatTextField = xv ' <--- here "Types do not match"

?


EDIT:
B4X:
    For Each xv As Object In pnlFTFs.GetAllViewsRecursive  ' <--- As Object
        If xv Is B4XFloatTextField Then
            Dim ftf As B4XFloatTextField = xv

Now it works and... disturbs other code 😄:mad:
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top