Skip to content

Get_default_map_mode Command

Obsolete

This command is obsolete. This command is valid only in character-mode DataFlex.

See Also

Purpose

To retrieve the default map mode being used by the system.

Syntax

get_default_map_mode to variable

Argument Explanation

variable: A variable to contain the Integer value for the map_mode property:

  • MAP_DEVICE
  • MAP_CHARACTER
  • MAP_DIALOG

What It Does

get_default_map_mode returns to variable the integer value of the map_mode property for the desktop. This mode applies to all objects that do not set their own map_modes explicitly in either their class definitions or their object definitions. This map_mode is MAP_DIALOG unless a previous set_default_map_mode statement has set it to a different value. See the Map_mode Property for explanations of the modes.

integer defMode
get_default_map_mode to defMode
if defMode ne MAP_DIALOG begin

In this example, the default map_mode is moved to the Integer variable defMode. If the default mode is not MAP_DIALOG, the statements following the last one shown above are executed.

Notes

  • This command is usable only in the Windows 95 operating system or later.