Android Question Checked view if is checkbox

Discussion in 'Android Questions' started by energeticaserranopolis, Jun 1, 2015.

  1. energeticaserranopolis

    energeticaserranopolis New Member Licensed User

    Hi, I have the code. I need to mark the "flag" to checked if true.
    Could anyone help me? Thanks.

    Sub checkFile(RemoteFile As String)
    Dim v As View
    For k = 0 To scrCheckBox.Panel.NumberOfViews -1
    If v Is CheckBox Then
    If v.Tag = RemoteFile Then

    // here is Checkbox , I need "flag" v.Checked = true

    End If
    End If
    End Sub
  2. DonManfred

    DonManfred Expert Licensed User

    If v Is CheckBox Then
    dim chk as checkbox = v
    if chk.checked then
    ' your code here
      end if
    end if
  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