KB-30904: Validating values written on a SetPoint.

Question:

How can I validate the values written on a SetPoint before sending them to a tag?

Solution:

To do so, you must use the SetPonit’s Validate() event on a script. For example:

Sub Setpoint_Validate(Cancel, NewValue)
'Confirmation to change the tag's value
if MsgBox("Do you want to change the tag's value from " & Value & " to " & NewValue & "?", vbQuestion + vbYesNo, "Confirm")=vbNo then
'Cancels
Cancel = True
end if
End Sub

Attachments:

ValidateSetPoint.zip

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *