[progress Communities] [progress Openedge Abl] Forum Post: Re: Return From Within A Procedure

  • Thread starter Thread starter Mike Fechner
  • Start date Start date
Status
Not open for further replies.
M

Mike Fechner

Guest
For tidiyng up, you should have a look at finally blocks. To return a status from procedure C to B, use output parameters. For returning error states, undo, throw new AppError ("some return value"). Sent from Nine Von: scosens Gesendet: 14.08.2017 18:00 An: TU.OE.Development@community.progress.com Betreff: [Technical Users - OE Development] Return from within a procedure Update from Progress Community scosens Hi, This may be a simple question, but is it possible to 'return' from within a procedure to the calling program. So ProgramA runs ProgramB which runs ProcedureC. I want to return directly from ProcedureC directly to ProgramA. Alternatively is it possible to trigger a block of code when returning? Some sort of "on Return do....." I've got multiple times in my program where I'm 'Return'-ing from ProgramB to ProgramA, because of some failed validation etc, and want to make it do some tidying up when it returns, but without hard coding that every time. Thanks, SC View online You received this notification because you subscribed to the forum. To stop receiving updates from only this thread, go here . Flag this post as spam/abuse.

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