Bug? Button traspassing is label

Discussion in 'Bugs & wishlist' started by Enrique Gonzalez R, Jun 2, 2015.

  1. Enrique Gonzalez R

    Enrique Gonzalez R Well-Known Member Licensed User

    Hi!

    I think i just found a bug with the following code

    For Each d As View In p.GetAllViewsRecursive
    If d Is Label Then
    If d.Tag = b.Tag Then
    d.RemoveView
    End If
    End If
    Next

    i have a button that traspass the If d is label then, and gets removed.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Peter Simpson likes this.
  3. Cableguy

    Cableguy Expert Licensed User

    So basically, first check if it is a button and take it of the list!
     
    Peter Simpson likes this.
  4. Enrique Gonzalez R

    Enrique Gonzalez R Well-Known Member Licensed User

    Thanks! the code that i used at the end was this one!

    For Each d As View In p.GetAllViewsRecursive
    If GetType(d) = "android.widget.TextView" Then
    If d.Tag = "la" & b.Tag Then
    d.RemoveView
    End If
    End If
    Next
     
Loading...
  1. 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.
    Dismiss Notice