Daniel,
Thanks for the help. I have no idea how to get to the Esign.
I have had some success with the MsgBox.
I have a selector button that toggles a value. My operators say they are clicking it inadvertently. Thus, I would like to have a confirmation on it being toggled.
When I double click the button it opens the scripts tab.
I do not see an option for an on click script. My choices are:
OnRelease
OnStartRunning
OnStopRunning
There is a crate new event but it only has 2 options:
Trigger when expression is true
Trigger when expression change
I have went with the event trigger: Whenever the property/expression changes its value
This is the script I am using:
Sub E2Button18_Change in value
’ Displays a MessageBox that asks a user
’ if the new SetPoint value should be used
if value = 0 then
message = "Changed to: " & “Auto” & vbnewline & _
"Was in: " & “Manual” & vbnewline & vbnewline & _
“Do you accept the change?”
If MsgBox (message, vbQuestion + vbYesNo, _
“Validate Event”) = vbNo Then
value = 1
End If
else
message = "Changed to: " & “Manual” & vbnewline & _
"Was in: " & “Auto” & vbnewline & vbnewline & _
“Do you accept the change?”
If MsgBox (message, vbQuestion + vbYesNo, _
“Validate Event”) = vbNo Then
value = 0
End If
end if
End Sub
It kind of works. I get the option box with asking to confirm the change but, it triggers after the change is applied and if you select No, it changes it back.
The preferred would be to have a trigger on click that o0nly changes the value after you confirm.
Is there a way to do this? Is there another spot to enter scripts I am missing?
Thanks.