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)
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.