this is the code, button1 works but the B4XSwitch does not (BtnSchedEnable)
is there a way to get the index with GetItemFromView on a B4XSwitch? or any other means?
Regards,
Mike
is there a way to get the index with GetItemFromView on a B4XSwitch? or any other means?
Regards,
Mike
B4X:
Sub BtnSchedEnable_ValueChanged (Value As Boolean)
Try
Dim MyIndex As Int =CLVPoolTC.GetItemFromView(Sender)
ToastMessageShow(MyIndex,False)
Dim TCi As TCItem = CLVPoolTC.GetValue(MyIndex)
TCi.Tue.TextColor= 0xff6a5acd'
Catch
Log(LastException)
End Try
End Sub
Sub Button1_Click
Try
Dim MyIndex As Int =CLVPoolTC.GetItemFromView(Sender)
ToastMessageShow(MyIndex,False)
Dim TCi As TCItem = CLVPoolTC.GetValue(MyIndex)
TCi.Tue.TextColor= 0xff6a5acd'
Catch
Log(LastException)
End Try
End Sub