This property improves the efficiency of making large content changes to a combo or list box.
Normally, the runtime system immediately repaints a combo or list box when the program adds/removes an item to/from the box. If you are making several changes in a row, this process can be slow. To improve performance, set the MASS-UPDATE property to 1. While set to 1, MASS-UPDATE inhibits repainting of the box because of changes in the box contents. To repaint after you have finished your changes, set MASS-UPDATE to zero (0).
For example, this code could be used to initially populate the contents of a combo box:
MODIFY COMBO-BOX-1, MASS-UPDATE = 1 PERFORM VARYING IDX FROM 1 BY 1 UNTIL IDX > COMBO-BOX-SIZE MODIFY COMBO-BOX-1, ITEM-TO-ADD = COMBO-BOX-ITEM( IDX ) END-PERFORM MODIFY COMBO-BOX-1, MASS-UPDATE = 0
In this example, the combo box will not be repainted until the last MODIFY statement executes.