How to add more than one expression in search expression?

11/18/2014 3:49:23 AM
Total Posts 2

How to add more than one expression in search expression?

How to add more than one expression in filter expression:
I tried to write more than one expression in filter expersion and i wrote it as below
layer.FilterExpression = "LAY= 11806 OR LAY= 11810";
and i think it's working (No error or exception is thrown)

Also in searchexperssion i tried to do that but it not working!!
AspMap.Recordset records = Map1["BUILDS"].SearchExpression("LAY=" + 11804 || "LAY=" + 11805);
so could you please help me?

11/19/2014 12:12:45 PM
MVP
Total Posts 323

Re: How to add more than one expression in search expression?

Try this code

 

AspMap.Recordset records = map["BUILDS"].SearchExpression("LAY=" + 11804 + " OR LAY=" + 11805);