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.

Scripts• Include event blocks for events that apply to the frame as a whole• Include event blocks for events on individual fields or menu itemsThe general syntax of a frame script is:[initialize [([parameterlist])] =[declare[localvariablelist][localprocedureforwardreferences][enddeclare]][beginstatementlistend [;]]{eventblock [;]}{localprocedure [;]}{parameterlist [;]}{localvariablelist [;]}parameterlistSpecifies the following:{variable = datatype {, variable = datatype}}localvariablelistSpecifies the following:{variable = datatype;}The initialize statement contains the local variable definitions and start-upoperations for the frame. The event blocks contain the code for the events forthe frame, form fields, and menu items. You can include comments at anypoint in your script. For more information, see Comments (see page 65).Most applications have a frame script for each frame. However, if the frameneeds no initialize statement, you can create the field and menu scriptsseparately and omit the frame script.Initialize StatementWhen the optional initialize statement is used, it must be the first statement inthe frame script.The initialize statement can have a parameter list that declares the parametersof a frame. Variables declared as frame parameters may be specified asparameters of the callframe, openframe, and gotoframe statements. For moreinformation about these statements, see the Language Reference <strong>Guide</strong> onlinehelp.68 <strong>Programming</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!