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.

ScriptsUserEventSpecifies a user eventFor more information about these events, see the Language Reference <strong>Guide</strong>online help.Examples—Frame event blocks:The following frame event block is an example of a standard quit sequence:on click menu.file_menu.quit_menu,on click quit_button =beginreturn;end;The following frame event block is an example of a standard frame terminationsequence:on windowclose,on terminate =beginif CurFrame.Topform.HasDataChanged = TRUE then/* save data */endif;end;The following frame event block is an example of a typical field on a form:on childsetvalue =begindata_is_changed = TRUE;end;Field and Menu Item ScriptsA field or menu item script contains one or more event blocks for the particularfield or menu item. The syntax is:[initialize =[declare[localvariablelist][localprocedureforwardreferences][enddeclare]][beginstatementlistend [;]]Writing Scripts and Procedures 71

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

Saved successfully!

Ooh no, something went wrong!