Set Area Units statement - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Sets MapBasic's default area unit. You can issue this statement from the MapBasic window in MapInfo Pro.

Syntax

Set Area Units area_name 

area_name is a string representing the name of an area unit (for example, "acre").

Description

The Set Area Units statement sets MapInfo Pro's default area unit of measure. This dictates the area unit used within MapInfo Pro's SQL Select dialog box. By default, MapBasic uses square miles as an area unit; this unit remains in effect unless a Set Area Units statement is issued. The area_name parameter must be one of the string values listed in the table below:

Unit Name Unit Represented
"acre" acres
"hectare" hectares
"perch" perches
"rood" roods
"sq ch" square chains
"sq cm" square centimeters
"sq ft" square feet
"sq in" square inches
"sq km" square kilometers
"sq li" square links
"sq m" square meters
"sq mi" square miles
"sq mm" square millimeters
"sq rd" square rods
"sq survey ft" square survey feet
"sq yd" square yards

Example

Set Area Units "acre"

See Also:

Area() function, Set Distance Units statement