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.

ScriptsThe following rules apply when coding event blocks:• If the event is a field or menu item event, you must also specify thevariable name associated with that field or menu item.For example, the following event block provides the code for the Clickevent for a field called close_button:on click close_button =beginparent_frame.SendUserEvent(eventname = 'INDICATOR_OFF',messageinteger = row_number);return;end;• If the event is a frame event, do not include a variable name.For example, the following event block in a frame script is a frame eventthat is executed whenever the user exits any field on the frame form:on childexit =beginstatementlistend;• You can include more than one event type in an event block.OpenROAD activates the event block whenever any of the specified eventsoccurs.• Declare local variables in the declare section of an event block.The variables defined in this section are visible only in the event block.• Separate the statements in the statementlist with semicolons.You can include as many statements as you want, and each can continueover as many lines as necessary. Also, you can include comments in theevent block. For more information, see Comments (see page 65).The following frame events are typically included in frame scripts:TerminateExits the frameChildEntryEnters a subform, composite field, or any field on the formChildExitExits a subform, composite field, or any field on the formChildSetValueChanges a subform, composite field, or any field on the formFrameResizedChanges the size of the window70 <strong>Programming</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!