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