AnsweredAssumed Answered

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

Question asked by RonaldMain on Nov 10, 2016
Latest reply on Nov 10, 2016 by 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.

Outcomes