Dim objtext
Set objtext = ScreenItems("组合框1")
If objtext.Text = "转速百分比模式" Then
HMIRuntime.Tags("dtkzms").Write 2
End If
怎样改才能使当组合框文本显示转速百分比模式时,更改dtkzms变量的值为2
Dim objtext
Set objtext = ScreenItems("组合框1")
If objtext.Text = "转速百分比模式" Then
HMIRuntime.Tags("dtkzms").Write 2
Else
If objtext.Text = "压力模式" Then
HMIRuntime.Tags("dtkzms").Write 3
Else
If ScreenItems("组合框1").text = "流速模式" Then
HMIRuntime.Tags("dtkzms") = 2
End If
End If
End If
这段代码什么作用,有错误吗