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.

Chapter 3: Writing Scripts and Procedures 67Scripts............................................................................................................................... 67Frame Scripts................................................................................................................ 67Field and Menu Item Scripts ............................................................................................ 71User Class Scripts .......................................................................................................... 73Statements in Scripts ..................................................................................................... 74Procedures ......................................................................................................................... 74How You Can Create Procedures in OpenROAD ................................................................... 75Global Procedures .......................................................................................................... 76Local Procedures............................................................................................................ 78Database Procedures...................................................................................................... 793GL Procedures ............................................................................................................. 80Calling Procedures ............................................................................................................... 83How You Can Call 4GL Procedures .................................................................................... 84How You Can Call Database Procedures............................................................................. 85How You Can Call Procedures in Expressions...................................................................... 86How Procedure Handles Work (ProcHandle Objects).................................................................. 87How You Can Create a ProcHandle Object.......................................................................... 87How You Can Execute a ProcHandle Object ........................................................................ 88Restrictions to Using the Call Method ................................................................................ 89Global Procedures Available in the Core Library .................................................................. 89Compiler Limitations ............................................................................................................ 92Chapter 4: <strong>Programming</strong> Frames 95How You Can Invoke Frames................................................................................................. 95FrameExec Object.......................................................................................................... 95How You Can Transfer Control Between Frames.................................................................. 98Differences Among the Frame-invoking Statements .......................................................... 100How You Can Change a Frame's Definition....................................................................... 106How You Can Block an Open Frame ................................................................................ 106Pop-up Frames ............................................................................................................ 108How You Can Use Ghost Frames .......................................................................................... 111How You Can Run Non-interactive Applications ...................................................................... 111Chapter 5: Working with Classes 113Conceptual Background...................................................................................................... 113How You Can Reference Objects .......................................................................................... 114How You Can Enhance Performance When Declaring Reference Variables ............................. 116Field Function.............................................................................................................. 117How You Can Set and Get Attributes............................................................................... 117How You Can Invoke Methods........................................................................................ 119iv <strong>Programming</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!