7. September 2011 16:21
Variable
RR -> RecordRef
i -> Int
FOR i := 55000 TO 55100 DO BEGIN
RR.OPEN(i);
RR.DELETEALL;
RR.CLOSE;
END;
if RR.OPEN(i) = true then
...
end;
7. September 2011 16:55
Variable
RR -> RecordRef
i -> Int
FOR i := 55000 TO 55100 DO BEGIN
IF Object.GET(Object.Type::"Table",'',i) THEN BEGIN // <---- HIER DIE PRÜFUNG
RR.OPEN(i);
RR.DELETEALL;
RR.CLOSE;
END;
END;
7. September 2011 16:59
8. September 2011 10:21
Variable
Object -> Record Object
RR -> RecordRef
i -> Int
Object.SETRANGE(Type,Object.Type::Table);
Object.SETRANGE("Company Name",'');
Object.SETRANGE(ID,55000,55100);
IF Object.FIND('-') THEN BEGIN
REPEAT
RR.OPEN(Object.ID);
RR.DELETEALL;
RR.CLOSE;
UNTIL Object.NEXT = 0;
END;