Added estimate for accounts listing browser, same as the chart of accounts. Requested
[capital-apms-progress.git] / trigger / crprglnk.p
blob91aee402aa6136fe6bb3cb7b54f0635c7087c05c
1 TRIGGER PROCEDURE FOR CREATE OF ProgramLink.
3 DO:
4 DEF VAR link-code AS INT NO-UNDO.
6 DEF BUFFER Lastlink FOR ProgramLink.
7 FIND LAST LastLink NO-LOCK NO-ERROR.
9 link-code = IF AVAILABLE LastLink THEN LastLink.LinkCode + 1 ELSE 1.
11 ASSIGN ProgramLink.LinkCode = link-code.
13 END.