Was this helpful?
Field Function
Every field or menu item has two variables associated with it:
The data variable
Stores the data that is displayed in a field. OpenROAD declares this variable automatically when you create the field or menu item using the OpenROAD Workbench.
The reference variable
Points to the field object. The field object contains information about the field itself, such as its size or color, and the data displayed in the field. To access this reference variable, you must use the field function. The field function returns the reference variable that is associated with the field object. The basic format is:
field(display_variable)
When you want to reference an attribute of a field object, use the field function to specify the reference variable as follows:
field(display_variable).attribute
In the following example, the if statement uses the field function to reference the UpdateBias attribute of the customer field:
if field(customer).UpdateBias = FB_VISIBLE then
Last modified date: 12/20/2023