Hello,
After calling this function i get a result like this :
No. | Name |
1 | AA |
2 | AA |
3 | AB |
4 | AC |
5 | AB |
I want to remove duplicate value {AA,AB}
LOCAL GetRessourcePerProject(VAR pVendor : Record Vendor) JobLedgerEntry.SETRANGE(JobLedgerEntry."Job No.",Job."No."); JobLedgerEntry.SETFILTER(JobLedgerEntry."Document No.",'%1|%2','NDY*','ODK*');
i:=0; IF JobLedgerEntry.FINDSET THEN REPEAT VendorLedgerEntry.SETRANGE(VendorLedgerEntry."Document No.",JobLedgerEntry."Document No."); IF VendorLedgerEntry.FINDFIRST THEN Vendor.SETRANGE(Vendor."No.",VendorLedgerEntry."Vendor No."); IF Vendor.FINDFIRST THEN BEGIN pVendor.INIT; pVendor."No." := FORMAT(i); pVendor.Name := Vendor.Name; pVendor.INSERT; i+=1; END; UNTIL JobLedgerEntry.NEXT = 0;
best regards
*This post is locked for comments