Public Sub rv_UpdateWidget
Dim ActiveAlerts As Int, ii As Int, ToBeAckCounter As Int, TempElem As AlertObj,AlertTextLocal As String
Try
If IsPaused("MQTTService") = True Then
rv.SetVisible("lblNextAlert",False)
rv.SetVisible("lblPrevAlert",False)
rv.SetText("lblAlertWdgt","" )
rv.SetText("lblAlertsCounter","0")
rv.SetVisible("lblTobeAck",False)
rv.SetVisible("lblTobeAckCounter",False)
rv.SetText("lblBrokerOK", "Disconnected")
rv.SetTextColor("lblBrokerOK",Colors.Black)
'rv.SetVisible("ImageView2",True) 'if I uncomment this line I get that error...
rv.UpdateWidget
Return
End If
.....