Kbase P104945: What is the difference between Strong & Weak Scoping ?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/3/2008 |
|
Status: Verified
GOAL:
What is the difference between Strong & Weak Scoping ?
GOAL:
What defines Scope ?
GOAL:
Strong vs Weak Scope
FACT(s) (Environment):
All Supported Operating Systems
Progress/OpenEdge Product Family
FIX:
Scope applies to three objects in Progress:
Records,
Frames, and
Transactions.
A STRONG scope is one in which no other reference of ANY kind may be made to the record or frame outside of the scope. Progress will not compile a procedure which has a reference to a frame or record outside a strongly-scoped block.
A MEDIUM scope is one in which a reference to a record or any of its fields outside the record scope will produce a run-time error message:
**No customer record is available (91)
Medium scope does not apply to frames.
A WEAK scope is one which limits the transaction scope for the record, but does not limit the record scope or frame scope. That is, any changes to the record are committed at the end of the weak scope, but the record and frame are still available after the end of the weakly scoped block.