10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

How You Can Invoke FramesFor more information about returning from the openframe, callframe, andgotoframe statements, see the following sections:• How You Can Open Concurrent Frames: Openframe Statement(see page 103)• How You Can Transfer Control to a New Frame: Callframe Statement(see page 100)• How You Can Pass Control While Closing the Parent: Gotoframe Statement(see page 104)A return statement for the starting frame of the application closes all frames inthe application and returns control to the level where the user entered theapplication. To allow users to return to the operating system, the startingframe for your application should include a Quit operation (either as a menuoperation or a button) that executes the return statement. For moreinformation about the return statement, see the Language Reference <strong>Guide</strong>online help.If there is some reason for the user to be able to leave the application from aframe other than the starting frame, use the exit statement. This statementcloses all open frames and returns control to the level where the user enteredthe application. For more information about the exit statement, see theLanguage Reference <strong>Guide</strong> online help.Differences Among the Frame-invoking StatementsBecause the three frame-invoking statements behave differently with referenceto the frame they call, they have many unique features. The followingsubsections describe the different aspects of the callframe, openframe, andgotoframe statements.How You Can Transfer Control to a New Frame: Callframe StatementThe callframe statement opens a new active frame that blocks the callingframe (makes it inactive). The called frame has control until you close it andreturns control to the calling frame with the return statement. After you returncontrol to the calling frame, the calling frame becomes active again.100 <strong>Programming</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!