Good afternoon,
I'm having a problem with a vba macro in PI Process Book. I have a routine to play an alarm sound when a value is out of its operating range.
The routine is working well. But, always I open the .pdi, it automatically generates a left and right parenthesis on the end of my code, something like this:
Private Sub Value2_DataUpdate()
If value is out of range
PlayWAV
MsgBox ("A vazão de MEG do poço TBU-7 está abaixo de 90%")
End If
End Sub
()
Which causes a compile error. I've already deleted the parenthesis and saved the code, but every time I open the .pdi , it is generated the right and left parenthesis again and so on..
Have you ever had this type of problem?