DR Get update mode

4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next

version 6.0


DR Get update mode (area) Integer

ParameterTypeDescription
areaLongint4D Draw area
Function resultIntegerScreen update status

Description

The command DR Get update mode returns an integer that describes the screen update status for area. It is useful for designing modular programs.

If DR Get update mode equals 0, screen updating is turned off. If DR Get update mode equals 1, screen updating is turned on.

Example

The following example turns off screen updating, calls a project method that makes several modifications, and then resets the screen update mode. This is particularly useful when working with nested methods.

   $Mode := DR Get update mode (Area)
      `Get the current update mode
   DR SET UPDATE MODE (Area;0)
      `Turn off screen updating
   REFORMAT (Area)
      `Area is a Longint 
   DR SET UPDATE MODE (Area;$Mode)
      `Restore original update mode

See Also

DR REDRAW, DR SET UPDATE MODE.


4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next