Out of interest, if you perform the same wildcard tag search using the PI SDK dialogs in ProcessBook do you see the same behaviour?
For PItag5 change the search to "tag Like 'UF97000*'"
The following worked for me:
Dim srv As Server Dim pointest As PIPoint Dim listest As PointList Dim listest2 As PointList Set pointest = srv.PIPoints("CDT158") Set listest = srv.GetPoints("Tag = 'CD*'") Set listest2 = srv.GetPointsSQL("Tag Like 'CD*'")
So my findings are that:
1. Server.PIPoints cannot accept wildcards.
2. Server.GetPoints can accept wildcards. In other words, I would have expected your PiPoints4 to have worked.
3. Server.GetPointsSQL can accept wildcards, but you have to use the syntax as suggested by Rhys.
PiPoints 2 does not work because wildcards are unsupported.
PiPoints 3 and 5 do not work because of syntax errors.
However, I am not sure why your PiPoints4 is not working. Granted, my tests are all in VBA and I know nothing about SVB. Could you test GetPointsSQL with the correct syntax and see if that works for you?
Edit: Just realized that this is a necropost, but somehow it was shown last active today in my feed. I have marked the question assumed answered due to the long period of inactivity.