Language Reference Guide : System Classes : GhostExec Class : ParentFrame Attribute
 
Share this page          
ParentFrame Attribute
Data Type: ProcExec
4GL Access: RW1
The ParentFrame attribute specifies the frame or procedure that called the current frame.
OpenROAD sets this attribute automatically when you use a callframe or an openframe statement to call a frame.
If you called the frame from another frame, OpenROAD sets this attribute to the value of the FrameExec of the calling frame. If you called the frame from a procedure, OpenROAD sets the attribute to the value of the ProcExec for the procedure.
You can set this attribute yourself, using the with clause of an openframe statement, to attach the called frame to a parent frame other than the calling frame or to make the new frame run as a detached frame.
When a parent frame closes, OpenROAD sends all of its child frames a Terminate event and then closes them. Similarly, if you use an openframe statement to call a frame from a procedure, a local procedure or userclass method, when the procedure or method exits, OpenROAD closes the called frame when the procedure exits. OpenROAD also sets the database session to that of the parent frame, even if you also specify the database session in the with clause.