3. September 2008 15:27
PurchLine.SETFILTER("Location Code",'L' + Job."No.");
PurchLine.SETFILTER("Job No.",Job."No.");
3. September 2008 15:37
3. September 2008 15:49
PurchLine.SEtRANGE("Job No.",Job."No.")
IF FIND('-') THEN
REPEAT
MARK := TRUE;
UNTIL NEXT = 0;
PurchLine.SETRANGE("Location Code",'L' + Job."No.");
IF FIND('-') THEN
REPEAT
MARK := TRUE;
UNTIL NEXT = 0;
end;
3. September 2008 15:58
// evtl. irgendwelche übrigen Filter
IF PurchLine.FIND('-') THEN
REPEAT
IF (PurchLine."Job No." = Job."No.") OR (PurchLine."Location Code" = 'L' + Job."No.") THEN
PurchLine.MARK(TRUE);
UNTIL PurchLine.NEXT = 0;
PurchLine.MARKEDONLY(TRUE);
3. September 2008 16:28
3. September 2008 17:02
Rabe_Nitz hat geschrieben:Ist aber leider extrem langsam. Ich durchsuche warscheinlich zu viele Datensätze... Der Key passt.