2 Replies Latest reply on Nov 5, 2009 4:22 PM by andreas

    Visual Basic Editor in ProcessBook

    Mohammad

      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?

       

      Thanks

       

      Mohammad