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.

Chapter 3: Writing Scripts and ProceduresThis section contains the following topics:Scripts (see page 67)Procedures (see page 74)Calling Procedures (see page 83)How Procedure Handles Work (ProcHandle Objects) (see page 87)Compiler Limitations (see page 92)This section explains how to write scripts and procedures, as well as the detailsof how to call procedures.ScriptsA script is a set of statements that define the actions performed by aprocedure or frame. In OpenROAD, you can write scripts for the following:• Frames• Frame events• Events for a field or menu item• Procedures• User class methodsGenerally, every frame has at least one event block associated with it, in eithera frame script or in an individual field or menu item script associated with theframe. If an interactive frame has no event blocks, then the frame is displayedbut the user cannot interact with it. For more information about events, seethe Language Reference <strong>Guide</strong> online help.The following subsections describe these types of scripts. The last subsection,Statements in Scripts (see page 74), gives a general overview of the types ofstatements that you can include in your scripts.Frame ScriptsEach frame can have one frame script. In the frame script, you can do thefollowing:• Initialize local variables for the frame• Perform any start-up operations for the frameWriting Scripts and Procedures 67

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

Saved successfully!

Ooh no, something went wrong!