Show Method .Net Example (TagSearch Object)

Add references for the OSISoft.PISDKDlg.dll, OSISoft.PISDKCommon.dll, and OSISoft.PISDK.dll interops. 

 

Create a Module called GlobalTagSearch.vb with the following code.

 

Module GlobalTagSearchObject

   Private AppObj As New PISDKDlg.ApplicationObject()
  
Friend TagSearch As PISDKDlg.TagSearch = AppObj.TagSearch

End Module

 

Add a Form to the project.  Add a command button to the Form and call it Command1.  Add a ListBox to the form and call it ListBox1.

 

Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click

   Dim II As Long
   Dim
Pt As PISDK.PIPoint
   Dim PtList As PISDK.PointList

   PtList = TagSearch.Show()
   For II = 1 To PtList.Count
      ListBox1.Items.Add(PtList(II).Name)
   Next

End Sub

 

Enabling Operational Intelligence