[progress Communities] [progress Openedge Abl] Forum Post: Re: [solved] Break Keyword Or By...

  • Thread starter Thread starter Marco Mendoza
  • Start date Start date
Status
Not open for further replies.
M

Marco Mendoza

Guest
You must change your code, in some cases the last-of() could be skipped. Example: What if the last-of(ap-ledger.vend-num) register have not a "p" on the ap-amt-type? You are doing a "next" and the last-of will never be executed. Usually I have 2 solutions to that issue, include all the conditionals in the "for each", or create a block and instead next, do a leave, example: inside1L: DO: if ap-ledger.ap-amt-type <> "p" then LEAVE inside1L. .... more code .... END. if last-of(ap-ledger.vend-num) then do: ... more code ....

Continue reading...
 
Status
Not open for further replies.
Back
Top