dear All,
I wonder about this coding (A and

structure different that I put in a commandbutton as follows:
coding A:
record2.SETCURRENTKEY("fieldx",record2."fieldx");
record2.SETRANGE("fieldy","fieldy"::rr);
record2.SETRANGE(record."fieldz","w");
FORM.RUNMODAL(FORM::"UUU",record2);
coding B:
CurrForm.SETSELECTIONFILTER(record1);
How to differentiate them..?
I would welcome to receive your answers. Thanks in advance.
Rgds,
Mark
Comments
It's a nonsense. Setcurrentkey doesn't filter but set the order.
Currform.SetSelectionFilter mark all selected records on the variable and set filer to Only Marked. So the button will return a record with "static filter" on the first choice and a "user defined" filter on the second.
Moreover, the first choice opens a form.... :-)