gustavo_dias
Member
Hi
I want to print some trend in wincc control trend using check box. But I have problems with the VBS code, when I check some option I print a trend (this part is ok) but when I uncheck my trend stay in my grafic.
My VBS code:
Dim Graf, chkbox, Select
Set Graf = ScreenItems("Control1")
Set chkbox = ScreenItems("Check Box1")
Select = "Processvaluearchive_1"
If chkbox.Process = 1 Then
Grafico.TrendIndex = 0
Grafico.TrendTagName = Select&"\"&"Var1"
Else
End If
If chkbox.Process = 2 Then
Grafico.TrendIndex = 1
Grafico.TrendTagName = Select&"\"&"Var3"
Else
End If
I want to print some trend in wincc control trend using check box. But I have problems with the VBS code, when I check some option I print a trend (this part is ok) but when I uncheck my trend stay in my grafic.
My VBS code:
Dim Graf, chkbox, Select
Set Graf = ScreenItems("Control1")
Set chkbox = ScreenItems("Check Box1")
Select = "Processvaluearchive_1"
If chkbox.Process = 1 Then
Grafico.TrendIndex = 0
Grafico.TrendTagName = Select&"\"&"Var1"
Else
End If
If chkbox.Process = 2 Then
Grafico.TrendIndex = 1
Grafico.TrendTagName = Select&"\"&"Var3"
Else
End If
Last edited: