AnsweredAssumed Answered

Filtering FindPIPoints by Point Class

Question asked by Steve Boyko Champion on Apr 24, 2015
Latest reply on Feb 12, 2016 by gaurav1107

I am trying to build a tag search dialog to allow the user to enter a tag mask and select a point class to limit the search. I'm having trouble with the query syntax and would appreciate some help. Here's my code so far:


        Dim coll As IEnumerable(Of PIPoint)

        Dim criteria As List(Of String)


        criteria = New List(Of String)

        criteria.Add("Name='" + ctrlSearch.Text + "'")

        If cmbPointClass.SelectedIndex > 0 Then      ' not just "all"

            criteria.Add("PointClass=" + cmbPointClass.Text)

        End If

        coll = PIPoint.FindPIPoints(Form1.pisrv, criteria)


        For Each p In coll




It never returns anything in the collection. What am I doing wrong? Thanks in advance for the help.