Android Question Checked view if is checkbox

energeticaserranopolis

New Member
Licensed User
Longtime 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
v=Activity.GetView(k)
If v Is CheckBox Then
If v.Tag = RemoteFile Then

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


End If
End If
Next
End Sub
 

DonManfred

Expert
Licensed User
Longtime User
B4X:
If v Is CheckBox Then
  dim chk as checkbox = v
  if chk.checked then
    ' your code here
  end if
end if
 
Upvote 0
Top