[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Unexpected lifetime of dataset member (REFERENCE-ONLY)

  • Thread starter Thread starter David Abdala
  • Start date Start date
Status
Not open for further replies.
D

David Abdala

Guest
Well.. that's exactly the point with BIND. BINDing a Temp-table/DataSet to a REF-ONLY equivalent, means "permanently" relating both references, into the same instance. BY-REFERENCE means a temporary relation among the references. The distinction is not so obvious, and where you should use them is not that simple either. Having a REF-ONLY definition, means you need to "bind" it to a real instance (with obviously the same structure) before using this 'reference' (definition). You can do this in a "permanent" way, or in a "temporary" fashion. The "permanent", which lasts up to the next binding, requires the BIND keyword. The "temporary", which lasts up to the scope of the procedure/method, uses BY-REFERENCE. So in cases where you need a REF-ONLY 'bindage' to persist "through scopes" you need to BIND it. When you only need it *IN* the actual scope, a BY-REFERENCE is enough. Sorry for so many "", but I lack the language skill to clarify it better. The documentation is (was hopefully) a little bit obscure in making this distinction. Hope this brings some light into the matter. David.

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