Dana BY
Active Member
I know this has to be really stupid, but I am really lost on how to use this Set User Selection. Sometime ago I've seen this described on one blog, but unfortunately I didn't save it anywhere.
So, my question is how to use OR in Set Selection commands set?
I need for my app to select data based on query "Select * from GRID where AN8 = ER_Variable, UPMJ = DateToday, IDLN = 1 and BKTP is in ("1", "B")
How do I use set selection there?
Set Selection(FC Grid, F0101, "AN8", <Equal To>, ER_Variable, <And>)
Set Selection(FC Grid, F0101, "UPMJ", <Equal To>, DateToday, <And>)
Set Selection(FC Grid, "F0111", "IDLN", <Equal To>, <Zero>, <And>)
Set Selection(FC Grid, "F0030", "BKTP", <Equal To>, "1", <And>)
Set Selection(FC Grid, "F0030", "BKTP", <Equal To>, "B", <Or>)
Will it be right? Because when I tried it something went wrong
So, my question is how to use OR in Set Selection commands set?
I need for my app to select data based on query "Select * from GRID where AN8 = ER_Variable, UPMJ = DateToday, IDLN = 1 and BKTP is in ("1", "B")
How do I use set selection there?
Set Selection(FC Grid, F0101, "AN8", <Equal To>, ER_Variable, <And>)
Set Selection(FC Grid, F0101, "UPMJ", <Equal To>, DateToday, <And>)
Set Selection(FC Grid, "F0111", "IDLN", <Equal To>, <Zero>, <And>)
Set Selection(FC Grid, "F0030", "BKTP", <Equal To>, "1", <And>)
Set Selection(FC Grid, "F0030", "BKTP", <Equal To>, "B", <Or>)
Will it be right? Because when I tried it something went wrong