2 Replies Latest reply on Nov 10, 2016 4:49 PM by RonaldMain

    hi, I want to retrieve the text programmatically from all the symbols in the Process Book Display

    RonaldMain

      Below is the code snippet

       

      ‘ Declaring a simple Text with value

      Dim actLabel As PBSymLib.Text

      Set actLabel = ThisDisplay.Symbols.Add(pbSymbolText)

      1. actLabel.Contents = "Sinusoid Tag"

       

      Dim actLabel As PBSymLib.Text

      Set actLabel = ThisDisplay.Symbols.Add(pbSymbolText)

      1. actLabel.Contents = "Sinusoid U Tag"

       

      ‘ I want to retrieve the text programmatically, from all the symbols in the Display.

       

      Dim sym As Symbol

       

          For Each sym In ThisDisplay.Symbols

      If sym.Type = 4 Then

                  Debug.Print sym.Name

       

      //here name gives Text1, I want the Content “Sinusoid Tag”

       

      I am unable to find get method for this.

       

      Thanks in advance.