version 6.0
WR UPDATE MODE (area; mode)
| Parameter | Type | Description | |
| area | Longint | 4D Write area | |
| mode | Integer | 0=No update | |
| 1=Update |
Description
The WR UPDATE MODE command allows the designer to enable and disable screen updating in area. If mode equals 0, screen updating is off. If mode equals 1, screen updating is on. This command only affects screen updates caused by 4D Write commands. User actions in area will continue to update the screen correctly.
When screen updating is turned off, 4D Write commands execute faster. For example, if you intend to execute a series of modifications to a 4D Write area, turn off updating before beginning the modifications and then turn updating on when you are finished. The commands execute faster as well as the screen redraw.
Example
The following example turns off screen updating, calls the Reformat project method that makes several modifications, and then turns screen updating back on:
WR UPDATE MODE (area;0) Reformat (Area) WR UPDATE MODE (area;1)
See Also