[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Type compatibility between HANDLE and Progress.Lang.Object

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

Peter Judge

Guest
It would be nice to have an OBJECT-REF( ) function similar to the WIDGET-HANDLE() function, but you can roll your own, traversing the SESSION’s FIRST-OBJECT tree. The time cost of traversal doesn’t seem excessive but obviously it’s linear and will depend on the number of objects currently instantiated. There’s a static ResolveWeakReference method in the OpenEdge.Core.Session class that does this for you. In 11.7.4 there’ll also be a WeakReference class in that same package that helps a little more with weak references.

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