MapBasic Definitions File - 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

The MapBasic development environment includes a MapBasic Definitions File (mapbasic.def) that lists definitions and defaults useful when programming in MapBasic. To have MapBasic statements and function calls work properly, add an Include statement for the mapbasic.def in the beginning of your programs.

Include "mapbasic.def"

Codes that are defined in mapbasic.def may not be entered in the MapBasic window. The mapbasic.def file contains many Define statements, including statements for TRUE, FALSE, and commonly-used colors (such as BLACK, WHITE, RED, GREEN, BLUE, CYAN, MAGENTA, and YELLOW). Each Define statements sets a code with a specific value; for example, the code BLACK has a numerical value of zero (0). When you are entering commands into the MapBasic window, you must use the actual value of each code, instead of using the name of the code (for example, use 0 instead of BLACK).

For more information about the MapBasic development environment, see the MapBasic User Guide.

Topics in this Section: