Command WR UPDATE MODE

4D Write

WR UPDATE MODE

version 6.0


WR UPDATE MODE (area; mode)

ParameterTypeDescription
areaLongint4D Write area
modeInteger0=No update
1=Update

Description

The WR UPDATE MODE command allows the designer to enable and disable screen updating in area. This command only affects screen updates caused by 4D Write commands. User actions in area will continue to update the screen correctly.

In the mode parameter, you can pass one of the following constants, found in the "WR Parameters" theme:

Constants (value)Description
wr screen updating off (0)Disables screen updating
wr screen updating on (1) Enables screen updating

When you call WR UPDATE MODE while passing the wr screen updating on constant in mode, the area is redrawn so it is not necessary to call the WR REDRAW command.

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;wr screen updating off)
   Reformat (Area)
   WR UPDATE MODE (area;wr screen updating on)

See Also

WR REDRAW.