Comment Finally

Cringer

ProgressTalk.com Moderator
Staff member
Call me behind the times and a Luddite, but I've just realised you can add a FINALLY block to any procedure or internal procedure. It doesn't have to be in a method/class. This is soooo nice! I can get rid of all my complex error trapping code that makes sure we tidy up behind ourselves. Yay! Christmas has come early!
 

Cringer

ProgressTalk.com Moderator
Staff member
no this is 11.2.1. Just never realised it was there for procedures. It made my day when I realised. Combine with block level error trapping and a piece of code I maintain suddenly gets do much easier!
 

oli

Member
Keep in mind that the FINALLY block is usually executed when the procedure ends... but not always.
If you consider a persistent procedure, the FINALLY block is executed immediately.
 
Top