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.

OpenROAD NamesIf the component belongs to a frame, procedure, method, or user class script,you cannot change the search order. However, if the component belongs to anapplication, you can direct OpenROAD to search only within a specificapplication by qualifying the component name with the application's name. Thesyntax is:application_name!component_nameWhen you include the application name, OpenROAD searches the specifiedapplication for the component rather than using the usual search order. Youcan specify the current application, any included application, or the corelibrary.When you specify a procedure or frame name at runtime, the search orderdiffers from the first four steps of the name order search.Dynamic Frame and Procedure Name ResolutionThe following four statements let you specify a frame or procedure name atruntime:• Callframe• Openframe• Gotoframe• CallprocWhen you use one of these statements to specify a frame or procedure name,OpenROAD resolves the reference at runtime instead of at compile time.OpenROAD first searches the currently executing component (a frame, globalprocedure, or user class method script) for a local procedure with thedynamically specified name. If the search is not successful, OpenROAD thensearches for a global component (a frame or procedure).By default, the global search order for the resolution starts with the topmostrunning application, that is, the application with which the user began thesession.This feature means that a frame in an included application can call a framethat belongs to the including application. For example, if Application A includesApplication B, then Application B can use a dynamic name to call a frame thatis part of Application A.Language Elements 23

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

Saved successfully!

Ooh no, something went wrong!