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.

Scripts{eventblock [;]}{localprocedure [;]}where eventblock is:on event {,on event } =[declarelocalvariablelist[enddeclare]]beginstatementlistend[;]eventSpecifies any event described in the the Language Reference <strong>Guide</strong> onlinehelp. In a field or menu item script, the event must be one that can beused for that particular field or menu item.For a list of the event types that you can use with each system class, seeonline help.statementlistSpecifies a list of statements that OpenROAD executes when the specifiedevent occurs.Like event blocks in frame scripts, the statement list can include anynumber of statements of any length. Separate the statements withsemicolons.Because the script for an individual field or menu item contains event blocksonly for that particular field or menu item, you need not specify the name forthe field or menu item in the event block (although it is legal to do so).If you use an initialize statement in both a frame script and a field script, theframe's initialize statement will run before the field's initialize statement. If youuse an initialize statement in both a field script for a composite field and in afield script for a child of that composite field, the child field's initializestatement will run after the composite field's initialize statement.72 <strong>Programming</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!