3. Statements : OpenROAD Language Statements : Callframe Statement : Examples—Callframe Statement
 
Share this page                  
Examples—Callframe Statement
Call newframe, passing a value from the simple variable, projnum, of the calling frame to the simple variable, projnum, in the called frame:
callframe newframe(projnum = projnum);
Call newframe, placing a value in the status variable upon returning to the calling frame:
status = callframe newframe;
Call calcframe, passing the simple variable, calc, by reference. On return, the value of calc reflects any changes made to the opexp value by calcframe:
callframe calcframe(opexp = byref(calc));
Call calcframe, changing the default position of the frame given on its property sheet:
callframe calcframe(ofexp = byref(calc))
          with windowxleft = 1000, windowytop = 2000,
          windowplacement = WP_PARENTRELATIVE;