Progress
Programming
Handbook


Frame Scope

The scope of a static frame is the range or extent of the frame’s availability within a procedure, which is equivalent to the area within a particular block. (This includes any and all nested blocks within the block.) For example, if a frame is scoped to the procedure block, it means that the frame is available throughout the entire procedure. You can display data in the frame from anywhere within the procedure. Figure 19–5 shows another example of frame scope.

Figure 19–5: Frame Scope

The scope of a static frame is the first REPEAT, FOR EACH, procedure, or DO WITH FRAME block that references the frame. In this context, HIDE and VIEW statements do not count as frame references.

The DEFINE FRAME statement defines a frame but does not scope it. The scope of the frame is the next REPEAT, FOR EACH, procedure, or DO WITH FRAME block that references the frame.

NOTE: Dynamic frames are globally scoped. For more information, see Using Dynamic Widgets."


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095