SetSelectDisplay()

Summary

Controls whether selection operations update maps automatically.

Syntax

SetSelectDisplay(boolean display_flag)

Argument Contents
display_flag If "True" all open maps are updated automatically when features are added to or removed from selection sets. If "False" maps are not updated when selection is performed.

Notes

  • If this flag is set to off, use RedrawMap() to update the map to show current selection settings.

  • Use SetSelectDisplay() when you want to perform a substantial number of selection operations without waiting for the map to update each time.

  • Use SetSelectAutoRedraw() to further control how maps are updated during selection operations.

  • Selection of records that are not map features never updates a map under any circumstances.

Example

qry = "Select * where Age > 65"
SetSelectDisplay("False")
n = SelectByQuery("Elderly", "Several", qry)
ShowMessage("There are " + String(n) + " elderly people in the database.")
DeleteSet("Elderly")
SetSelectDisplay("True")

See Also

Function Summary
GetSelectDisplay() Indicates whether selection operations update maps automatically
RedrawMap() Redraws a map window
SetSelectAutoRedraw() Controls how maps are updated during selection operations