Visual Basic Editor in ProcessBook

Discussion created by Mohammad on Nov 5, 2009
Latest reply on Nov 5, 2009 by andreas

Hello Friends


I want to use VB editor for changing the value color of my value in processbook display.


Assume, I have one symbol on processbook which has been assigned from AF and it is getting value from a PI tag.


Now I want to do some scriptings. I want to have different colors for my value when it is less or higher than certain value.


I started with DataUpdate event of Value1 and wrote the following code:

Private Sub Value1_DataUpdate()
    If ThisDisplay.Value1 = 80 Then
        Value1.Color = False
    End If
End Sub

but the problem is that it does not work and gives me error. Because I do not have Color property for Value 1.


Could you please illustrate or write equivalent code for me to see where the problem is?