Skip to Content
0
Former Member
Jul 29, 2008 at 07:25 AM

Multiple Conditions in chosefromlist.....

18 Views

Hi All,

I am trying use multiple condition in chosefromlist... But when i use multiple conditions. chosefromlist object does not fetch any row. If I use one condition then it works...

this is my code. I am not getting what's the problem with this code...

for (int i = 0; i <= dSet.Tables[0].Rows.Count - 1; i++)

{

c = oCons.Add();

c.BracketOpenNum = 1;

if (i >= 1 && i <=dSet.Tables[0].Rows.Count - 1)

c.Relationship = SAPbouiCOM.BoConditionRelationship.cr_OR;

c.Alias = "ItemCode";

c.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL ;

c.CondVal = dSet.Tables[0].Rows<i>["ItemCode"].ToString();

c.BracketCloseNum = 1;

}