[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Problems using QUIT in PASOE to simulate "classic" state-reset (problematic because it

  • Thread starter Thread starter Peter Judge
  • Start date Start date
Status
Not open for further replies.
P

Peter Judge

Guest
> (Or perhaps there is a way to enumerate and delete persistent procedures manually?) This can be done relatively simply. Take a look at the SESSION system handle, in particular the FIRST-* attributes, like FIRST-PROCEDURE and FIRST-OBJECT . Once you have the relevant thing (a handle for the PROCEDURE) you can walk a tree with the NEXT-SIBLING attribute. You can see an example at github.com/.../Session.cls . hTemp = session : first-procedure . do while valid-handle (hTemp): if hTemp: file-name eq pcName then oProcedures: Add ( new WidgetHandle(hTemp)). hTemp = hTemp: next-sibling . end . You can add that to a session’s deactivate procedure and see/destroy whatever you want to.

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