MIGetErrorMessage() function - 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

Retrieves the last error message.

Syntax

MIGetErrorMessage() As String

Return Value

A string that contains the error message.

Description

MIGetErrorMessage() should be called immediately to get useful data when a function's return value indicates its failure and you want to know the cause. Many of the returned errors are system-set errors.