Hi
I have a simple button in WinCC 6.2, I wanted to toggle its status from false to true and vice versa at every click. For this I tried no of ways but no joy
1.
Sub OnLButtonDown(ByVal Item, ByVal Flags, ByVal x, ByVal y)
Dim gg
Set gg = HMIRuntime.Tags("gg")
gg = Not gg
HMIRuntime.Tags("gg").Write(gg)
End Sub
2.
Sub OnLButtonDown(ByVal Item, ByVal Flags, ByVal x, ByVal y)
Dim gg
gg = HMIRuntime.Tags("gg").read
gg = Not gg
HMIRuntime.Tags("gg").Write(gg)
End Sub
Can anybody tell me what is wrong in above code
I have a simple button in WinCC 6.2, I wanted to toggle its status from false to true and vice versa at every click. For this I tried no of ways but no joy
1.
Sub OnLButtonDown(ByVal Item, ByVal Flags, ByVal x, ByVal y)
Dim gg
Set gg = HMIRuntime.Tags("gg")
gg = Not gg
HMIRuntime.Tags("gg").Write(gg)
End Sub
2.
Sub OnLButtonDown(ByVal Item, ByVal Flags, ByVal x, ByVal y)
Dim gg
gg = HMIRuntime.Tags("gg").read
gg = Not gg
HMIRuntime.Tags("gg").Write(gg)
End Sub
Can anybody tell me what is wrong in above code
Last edited: