6. Working with Arrays, Table Fields, and Collections : Table Field Operations : How You Can Remove or Add the Control Button
 
Share this page                  
How You Can Remove or Add the Control Button
When you create a table field in OpenROAD Workbench, you can add a control button, which will contain the table field's operations menu associated with the table field. You can use the Property Inspector to add the control button by setting the HasControlButton attribute to TRUE. You can also set the HasControlButton attribute in your 4GL code:
field(tablefield).HasControlButton = TRUE;
If a table field does not currently contain a control button and you want to add one, you must specify an existing object of the ControlButton class. The syntax is:
field(tablefield).ControlButton = control_button;
Note:  If you add a control button containing the default operations, you must point to a control button that contains these operations.