Hello,
My problem is:
I have a table and some records are set as MARKED. And now I need to SHOW ONLY NON-MARKED records.
I don't know how to set such a filter. :shock: I tried
record.MARKEDONLY(false)
but it didn't gave a result. ](*,)
Please help,
http://www.reinwestuj.pl Inwestuj w nieruchomości. Condohotele, aparthotele.
0
Comments
Well function Rec.MARKEDONLY(TRUE); can show only marked =TRUE.
I think You have to invert marking before that..
From Help:
IF NOT Rec.MARK THEN BEGIN
do whatever you need to do
END;
markedonly(false)
repeat
rec.mark := not rec.mark;
until next = 0;
thus reversing the marks
|To-Increase|
I needed to delete UNMARKED records and leave only MARKED. Here is my code:
IF rec.FINDFIRST THEN
REPEAT
IF NOT rec.MARK THEN
rec.DELETE;
UNTIL rec.NEXT = 0;
p.s.
First I tried to do this way (but it don't work):
rec.MARKEDONLY(false);
Rec.DELETEALL;