10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

How You Can Invoke FramesBecause the frame invoked by the gotoframe statement replaces the callingframe, the parent frame of the calling frame now has a new child frame. Thefollowing is an illustration of this concept:How Returning to a Closed Parent WorksOpenROAD automatically terminates the child frame when the parent frameterminates. Therefore, if the user closes the calling frame's parent frame,OpenROAD automatically terminates the new child frame.You cannot return to the calling frame (the frame that issued the gotoframestatement). However, you can use the return statement to return to the parentof the calling frame. You can specify an expression in the return statement ifthe data type of the parent frame's return type matches that of the child.How You Can Pass Parameters Between an Active Child and a Closed ParentBecause passing a 4GL object as a parameter means passing the reference tothe object rather than the object itself, even though gotoframe closes thecalling frame, the reference variable on the called frame still points to theoriginal object. It may not be useful, however, to pass a field object from theform on the calling frame because that field is no longer displayed.Note: The gotoframe statement does not provide a byref option. Passingvalues by reference is available for the callframe statement only. For moreinformation, see How You Can Open Concurrent Frames: OpenframeStatement (see page 103).<strong>Programming</strong> Frames 105

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!