// Copy header recHeader.INIT; recHeader.TRANSFERFIELDS(Rec); TempNum := recHeader."No."; TempNum := TempNum + '-Copy'; recHeader."No." := TempNum; recHeader.INSERT(TRUE); // Copy lines recLine.SETRANGE("No.", Rec."No."); IF recLine.FIND('-') THEN REPEAT recLine.INIT; recLine.TRANSFERFIELDS(recLine); recLine."No." := TempNum; recLine.INSERT(TRUE); UNTIL recLine.NEXT = 0; MESSAGE('You have created a copy from No. ' + TempNum); GET(TempNum); CurrForm.UPDATE(FALSE);
Answers
Arhontis
https://forum.mibuso.com/search
Arhontis
https://forum.mibuso.com/search
(BTW, this topic should be in Navision forum, not Navision Financials -- I inserted it here by mistake :oops:)
"I don't want to believe. I want to know." (Carl Sagan)