iOS Question B4XView removeAt(index)

LucaMs

Expert
Licensed User
Longtime User
@LucaMs, that is, I have to convert the object back into bread and from there remove the object concerned
Another way is to use GetAllViewsRecursive and check the B4XView tag (if you set it with an identifier).
B4X:
...
If MyB4XView.Tag = "..." Then
    MyB4XView.RemoveViewFromParent
    Exit
End If
...
 
Upvote 0

ivanomonti

Expert
Licensed User
Longtime User
Tank @LucaMs

B4X:
    For Each n As Node In base.GetAllViewsRecursive
        If n Is Button Then
            Dim btTemp As Button = n
            If btTemp.Id = "CalendarButton" Then
                btTemp.RemoveNodeFromParent
            End If
        End If
    Next
 
Upvote 0
Top