3. Programming Frames : How You Can Invoke Frames : Differences Among the Frame-invoking Statements : How You Can Pass Parameters Between Active Frames
 
Share this page                  
How You Can Pass Parameters Between Active Frames
If you pass an object as a parameter to the opened frame, you are actually passing the pointer to the object rather than the object itself. Therefore, because both the parent and child frames have pointers to the same object, any changes made to the object by the child frame are reflected in the parent frame.
If the object is associated with a field in the child frame, OpenROAD does not display the new value in the field until the current event block in the parent frame completes. To cause the value to be updated before the end of the event block, use the Flush method immediately after the openframe statement. For more information about the Flush method, see the Language Reference Guide.
Note:  The openframe statement does not include a byref option. This is available for the callframe statement only. For more information, see How You Can Transfer Control to a New Frame: Callframe Statement (see How You Can Transfer Control to a New Frame: Callframe Statement).