engcr_osipi

PI ProcessBook VBA for TagValue

Discussion created by engcr_osipi on Sep 9, 2019
Latest reply on Sep 9, 2019 by engcr_osipi

Hi

 

I am trying to set the alignment of tag value in processBook to left but dont seem to get a property for it.

 

e.g if I need to update the Number Format I use the below

Private Sub Update_Format()

Dim abc As String
Dim TagName As String

For Each sym In currdisp.Symbols

'*****For updating Value Number Format**************

If sym.Type = pbSYMBOLTYPE.pbSymbolValue Then
'TagName = sym.GetTagName(1)
sym.NumberFormat = "0.00"
End If

'*****For updating Value Number Format**************

 

But to align a tag left I need to select the tags in ProcessBook, and from tools menu do Arrange-?Align->Left

Is there some way to do this via VBA?

 

Regards

Daisy

Outcomes