-->

Руководство пользователя mapbasic


mapbasic

Чтобы начать программировать на MapBasic, надо просто начать программировать на MapBasic. Но чтобы научиться программировать на MapBasic, надо читать, читать и читать. И никакого парадокса здесь нет. MapBasic – довольно простой язык, вполне доступный для самостоятельного освоения. Вместе с тем, он не лишён своих «подводных камней», характерных особенностей и практических решений, свойственных только этому языку. И для полноценного освоения MapBasic, безусловно, необходимо изучать специальную литературу.

На странице ниже собраны как официальные издания компании Pitney Bowes Software, так и самоучители и учебники по MapBasic независимых авторов, а также статьи, посвященные программированию на языке MapBasic.

«MapBasic – мощный и одновременно простой в использовании язык программирования , который позволит Вам создавать собственные приложения в среде MapInfo Professional.»


  • Официальные издания
  • Учебная и методическая литература
  • Статьи и обзоры

Официальные издания


Руководство пользователя MapBasic

Русское издание

©2008-2011 Pitney Bowes Software Inc.
©1992–2006 MapInfo Corporation.
©2000-2006 ООО «ЭСТИ МЭП». Русский перевод Владимир Журавлёв, Алексей Колотов, Камиль Мусин, Всеволод Николаев, Ольга Зислис.

Справочник MapBasic

Русское издание

©2008-2011 Pitney Bowes Software Inc.
©2006 MapInfo Corporation.
©2006 ООО «ЭСТИ МАП». Русский перевод Владимир Журавлёв, Алексей Колотов, Камиль Мусин, Всеволод Николаев, Ольга Зислис.


Учебная и методическая литература


Программирование для MapInfo на примерах

Эта книга для тех, кто уже знаком с MapInfo и имеет желание более активно управлять этой средой. Все изложенное не является руководством или справочником по программированию в конкретных языках (MapBasic, VB.NET). Упор сделан на рассмотрение примеров кода языка MapBasic.


Статьи и обзоры


Геостатьи «KARASOFT Design»

В цикле статей рассматриваются некоторые «секреты», благодаря которым рядовые пользователи смогут построить свою работу более эффективно. Для начала разбираются основы строения таблиц MapInfo, как основных источников данных. Затем – язык программирования MapBasic в части возможного применения некоторых его операторов и функций в стандартных окнах запросов и изменения содержимого семантических полей в MapInfo:

  1. Таблицы MapInfo Professional. Строение. Типы данных.
  2. Использование языка MapBasic в выборках MapInfo Professional.
  3. Операторы языка MapBasic для условий выборок в MapInfo Professional.
  4. Функции языка MapBasic для условий выборок в MapInfo Professional.

Просто и ясно о MapInfo и Delphi

Хорошо известный цикл из 3 статей, опубликованных в 2002 году на сайте «Королевство Дельфи». Статьи посвящены Интегрированной Картографии MapInfo и возможности встраивания ГИС в пользовательскую программу. Языком разработки, что естественно, выбран Delphi.

Статьи очень старые, многократно перепечатанные на различных сайтах. К сожалению, весьма неаккуратно и с изрядными потерями смысла. В совокупности со своеобразным отношением автора к синтаксису и пунктуации текст становится, зачастую, нечитабельным.

В настоящей републикации исправлены все, надеюсь, орфографические и пунктуационные ошибки. Текст разбит на главы в соответствии с оригинальным источником и снабжен иллюстрациями.

Данная работа посвящена знакомству с основами языка программирования MapBasic, потому что важно в начале получить фундаментальные представления о изучаемом языке. При изучении мы затронем синтаксис языка, основные операторы и управляющие конструкции, процедуры и функции и многое другое, что поможет более плавно перейти в темы следующих работ.

MapBasic – это программный пакет, позволяющий создавать собственные приложения, работающие в среде MapInfo Professional. MapBasic основан на семействе языков программирования BASIC, являясь по сути расширением для работы в ГИС. Но в то же время нельзя сказать, что MapBasic – только макроязык; MapBasic – мощный язык программирования, включающий в себя более 300 операторов и функций. Кроме того, поскольку MapBasic работает в среде MapInfo Professional, то он позволяет использовать всю гамму географических возможностей MapInfo Professional.

Общие замечания о синтаксисе языка MapBasic

Прежде чем рассматривать основные операторы и языковые конструкции MapBasic’а более детально, дадим общее описание синтаксиса программ на нём.

В MapBasic, как и в некоторых других BASIC-подобных языках, апостроф (' ) обозначает начало комментария. Если в программе встретился апостроф, MapBasic понимает оставшуюся часть строки как комментарий, кроме тех случаев, когда апостроф является частью строки символов.

‘ Эта строка комментарий

Строчные и прописные буквы

MapBasic является регистронезависимым языком, то есть компилятор языка не различает большие и малые буквы. Вы можете использовать в своих программах СТРОЧНЫЕ БУКВЫ, прописные буквы или Строчные и Прописные Вместе. Однако, как и в любом другом подобном языке, есть правила, которых стоит придерживаться (привет CamelCase в Java 🧐).

Поэтому мы будем придерживаться следующего стиля: первые буквы ключевых слов языка MapBasic будут везде большими; переменные будут состоять только из маленьких букв.

Note «Значение counter слишком велико»

Для объявления переменных используется оператор Dim. Объявление переменной должно предшествовать ее использованию.

Также в одном операторе Dim можно указывать переменные разных типов. Вот как можно объявить две переменные типа Date и две переменные типа String:

Dim start_date, end_date As Date,

first_name, last_name As String

Чтобы объявить массив, следует после имени переменной в круглых скобках указать размер (количество элементов) массива.

Доступ к элементу массива осуществляется через индекс — порядковый номер этого элемента в массиве.

‘Присваиваем первому элементу массива значение

Чтобы изменить размер массива, надо использовать оператор ReDim. Текущий размер массива возвращает функция UBound(). Ниже приводится пример, в котором объявляется массив строковых переменных, а затем размер массива увеличивается на десять элементов.

Dim counter As Integer, names(5) As String

ReDim names(counter + 10)

Типы данных, заданные пользователем

Вы можете объявить свой тип данных с помощью оператора Type… End Type. Заданный таким образом тип данных представляет собой группу из одного или нескольких стандартных типов. Объявив свой тип данных, вы можете объявлять переменные этого типа с помощью оператора Dim.

‘Определяем свой тип данных aka класс в ООП

‘Объявляем переменную нашего нового типа

Каждая компонента пользовательского типа данных называется полем. И к полям можно получат доступ следующим образом:

manager.title = «Самый главный»

Операторы производят некоторое действие над одним или несколькими значениями. Операторы можно классифицировать по типу параметров, к которым они применяются, и по типу результата.

Оператор

Действие

Пример

+

Сложение

x = a + b

Вычитание

x = a — b

*

Умножение

x = a * b

/

Деление

x = a / b

Деление нацело

x = a b

Mod

Деление с остатком

x = a Mod b

^

Возведение в степень

x = a ^ b

Оператор сложения (+) позволяет соединить несколько строк в одну.

Note «Служащий: « + firstname + » « + lastname

Операторы этой группы сравнивают значения (как правило, одного типа) и возвращают логическое значение TRUE или FALSE. Операторы сравнения используются обычно в условных операторах (например, в If... Then).

Оператор

Пример

=

If a = b Then ...

<>

If a <> b Then ...

<

If a < b Then ...

>

If a > b Then ...

<=

If a <= b Then ...

>=

If a >= b Then ...

Between… And

If x Between 0 And 10 Then...

Каждый из перечисленных операторов сравнения может использоваться в строковых и числовых выражениях, а также в выражениях для дат.

Логические операторы применяются к логическим значениям и возвращают TRUE или FALSE.

Управляющие операторы определяют порядок выполнения других операторов. В языке Map- Basic имеется три типа управляющих операторов:

  1. 1.

    Условные операторы позволяют пропускать выполнение некоторых операторов в программе на языке MapBasic (If... Then, GoTo);

  2. 2.

    Операторы цикла позволяют повторять группу операторов несколько раз (For... Next, Do... While);

  3. 3.

    Другие специальные управляющие операторы (End Program и др.).

Данный оператор работает так же, как и все подобные ему в других языках программирования. В нём проверяется истинность условия; если оно истинно, MapBasic выполняет операторы, расположенные после ключевого слова Then.

В следующем примере MapBasic выдает сообщение об ошибке, если значение счетчика слишком мало:

Note «Ошибка: Счетчик слишком мал»

В операторе If... Then может также присутствовать предложение Else. Если условие ложно, то MapBasic выполняет операторы, расположенные после ключевого слова Else.

Note «Ошибка: Счетчик слишком мал»

Оператор For_Next определяет цикл, выполняющийся заданное число раз. Каждое повторение состоит в том, что MapBasic выполняет все операторы, находящиеся между For и Next. Перед использованием цикла For... Next, Вы должны объявить имя числовой переменной, которая будет использоваться в качестве счетчика. Надо указать начальное и конечное значения этого счетчика. После выполнения каждого повтора (после каждой итерации) MapBasic будет увеличивать счетчик на заданную величину (шаг цикла). Стандартный шаг цикла равен единице; чтобы задать другой шаг, следует использовать необязательное предложение Step.

Dim monthly_sales(12), total As Float, index As SmallInt

total = total + monthly_sales(index)

Оператор цикла Do... Loop

Оператор Do... Loop выполняет группу операторов, пока заданное в нем условие остается истинным, либо пока условие остается ложным. Возможны различные виды оператора Do... Loop, в зависимости от того, когда Вы хотите проверять условие цикла: до или после выполнения операторов, находящихся в теле цикла. В следующем примере программы условие проверяется в конце цикла:

Dim total, new_accounts(10) As Float, index As SmallInt

total = total + new_accounts(index)

Loop While index <= UBound(new_accounts)

Следующий пример содержит проверку в начале цикла. Поскольку условие проверяется в начале цикла, операторы в теле цикла могут не выполниться ни разу. Если в момент начала выполнения цикла условие уже ложно, операторы в теле цикла Do... Loop не будут выполнены ни разу.

Dim total, new_accounts(10) As Float, index As SmallInt

Do While index <= UBound(new_accounts)

total = total + new_accounts(index)

Процедура представляет собой основную структурную единицу программы на языке MapBasic. Типичная программа на MapBasic состоит из нескольких процедур; каждая такая процедура содержит операторы, вместе выполняющие некоторую конкретную задачу.

Каждая программа на MapBasic должна содержать по крайней мере одну процедуру, а именно процедуру со стандартным именем «Main». При запуске приложения на MapBasic, автоматически начинает выполняться процедура Main из данного приложения (снова привет Java 🧐).

Оператор Declare Sub указывает MapBasic, что в программе встретится процедура с заданным именем. Каждой процедуре в программе должен соответствовать один и только один оператор Declare Sub. Причем оператор Declare Sub должен предшествовать телу объявляемой процедуры. Обычно все операторы Declare Sub располагаются в самом начале программы. Внимательный студент заметит, что в примере простой программы на MapBasic из прошлой работы мы не объявляли никакую процедуру. Но… даже такая простейшая программа все равно содержит процедуру Main, однако в таких случаях процедура Main задана неявно.

Объявление и вызов пользовательских процедур

При компиляции приложения MapInfo автоматически начинает с вызова процедуры Main(независимо от того, явно или неявно она присутствует в программе). Затем процедура Main может вызывать другие процедуры с помощью оператора Call.

Declare Sub getCurrentDate

Note «Сегодня « + Str$(CurDate())

Предыдущий пример демонстрировал объявление и вызов процедур без параметров, но MapBasic позволяет создавать процедуры с параметрами. Если процедура имеет параметры, то при ее объявлении их следует перечислять в круглых скобках после имени процедуры в операторе Sub... End Sub.

Declare Sub checkDate(reportDate As Date)

Call checkDate(reportDate)

Sub checkDate(reportDate As Date)

Dim elapseDays As SmallInt

elapseDays = CurDate() reportDate

If elapsedDays > 180 Then

Note «Прошло больше 180 дней»

Процедуры-обработчики системных событий

В графическом интерфейсе пользователь управляет программами нажатиями на клавиатуру и на кнопку мыши. Как только в ответ на действие пользователя было сгенерировано некоторое системное событие, приложение должно отреагировать соответствующим образом. Кроме перечисленных, событиями являются: выбор команд меню, открытие и закрытие окон и т.д.

В языке MapBasic обработкой системных событий занимаются специальные процедуры. То есть вы можете организовать свою программу таким образом, что MapBasic будет автоматически вызывать необходимые процедуры обработки при выявлении тех или иных системных событий.

В следующей таблице приводится список основных специальных имен процедур обработки событий в языке MapBasic.

Процедура или функция обработчика

Вызывается в случае, если приложение заканчивает работу или пользователь закрывает MapInfo Professional. EndHandler может использоваться для корректного завершения работы (например, удаления временных файлов).

Вызывается в том случае, когда пользователь применяет один из инструментов в окне Карты, Списка или Отчета.

Вызывается, когда пользователь закрывает окно Карты, Списка, Графика или Отчета.

Вызывается в тот момент, когда пользователь делает активным одно из окон.

Как правило, для вызова перечисленных процедур не используется оператор Call. Если процедура имеет одно из указанных специальных имен, MapBasic вызывает эту процедуру автоматически в момент появления соответствующего системного события. Но это далеко не весь список обработчиков, более подробно будем их рассматривать в последующих работах.

В языке MapBasic используются различные функции: Asc(), Format$(), Val(), Distance() или ObjectGeography( ) и т. д. MapBasic также позволяет создавать свои функции. Создав свою функцию, можно вызывать её так же, как и стандартные функции языка MapBasic. Тело функции заключается между парой ключевых слов Function... End Function.

Function имя_функции(параметры) As тип_данных

Важно понимать разницу функции от процедуры. В случае функции задаётся её тип. Он определяет тип значения (например, Integer, Date, String), возвращаемого функцией.

Внутри конструкции Function... End Function имя функции доступно как параметр, переданный ссылкой. В операторе в теле конструкции Function… End Function можно присвоить значение; это значение позднее MapBasic вернет вызывающей процедуре как значение функции.

Declare Function moneyFormat(ByVal num As Float) As String

Dim dollarAmount As String

dollarAmount = moneyFormat(1234567.89)

Function moneyFormat(ByVal num As Float) As String

moneyFormat = Format$(num, «$,#.##;($,#.##)»)

Директива Include позволяет объединять два или более раздельно набранных программных файлов в одно приложение на MapBasic.

Директива Include имеет следующий синтаксис:

где имя_файла – это имя текстового файла, содержащего операторы языка MapBasic.

Многие приложения на языке MapBasic используют директиву Include для того, чтобы включить в программу стандартный файл заголовков языка MapBasic – MAPBASIC.DEF:

MAPBASIC.DEF определяет многие стандартные имена языка MapBasic (TRUE, FALSE, RED, GREEN, BLUE, TAB_INFO_NAME и т.д.). Имя файла в данной директиве может также включать имя диска и путь к каталогу. Если путь не указан, компилятор MapBasic ищет файл в текущем каталоге; если файл так и не обнаружен, компилятор ищет его в том каталоге, в котором установлен MapBasic.

Упражнения на лабораторную работу

Упражнение 1.1 Работа с простыми операторами

Написать программу, которая вычислит простые числа в пределах от 2 до 99, включительно.

Упражнение 1.2 Работа с массивом

Написать процедуру, которая увеличит все элементы массива — [5, 9, 4, 3, 6] на 10%. Вывести получившийся массив.

Упражнение 1.3 Сортировка массива

Написать процедуру, который выполнит над массивом — [3, 1, 10, 3, 7, 2, 9] сортировку выбором. Вывести получившийся массив.

Упражнение 1.4 Поиск корней уравнения

В три переменные a, b и c записаны три числа. Создать программу, которая будет находить и выводить на экран корни квадратного уравнения

a∗x2+b∗x+c=0a*x^2 + b*x + c = 0

, либо сообщать, что корней нет.

Documentation

Articles

Is it possible for the ‘ProportionOverlap()’ function to work on Text objects in MapBasic?

Read more

How to suppress News Feed Notifications using MapBasic

Read more

MapInfo Pro color code table (picklist)

Read more

What should I know about Coordinate Systems when working with MapBasic

Read more

Using MapInfo MapBasic to find a Windows operating system Environment variable

Read more

How to lock the position of the frames and object in a Layout Designer Window using a MapBasic command

Read more

How to alter a text frame on a LayoutDesigner using MapBasic 64-bit

Read more

How to move points on a map with MapBasic

Read more

Locating the RibbonLib for MapBasic

Read more

Using the MOD operator and integer division in MapInfo Professional

Read more

How to resize the preview panel in a Layout Designer Window using a MapBasic (.NET) command

Read more

How to perform a MapBasic function that will return the name and path of the current workspace

Read more

Does MapBasic command PrintWin allows PDF as an output?

Read more

How to use a variable name that is the same as a field name in the MapBasic Window

Read more

Developer Dojo: Porting your MapBasic applications to the Ribbon based interface

Read more

How to change the current workspace directory in MapBasic

Read more

How can I make my queries run faster in MapInfo Pro or MapBasic

Read more

How to take advantage of the new MapBasic Exec() function in MapInfo Pro

Read more

Resolve open table function does not open the requested table file

Read more

URI path support in MapInfo Pro: Frequently Asked Questions

Read more

Toggling Legend Grid Lines using MapInfo Pro and MapBasic

Read more

Count values for a Thematic map not displaying consistent justification in MapInfo Pro Legend Designer

Read more

Resolving issue in MapInfo Pro 17.0.1 where custom mbx fails to create legacy tab as it did in un-patched Pro 17.0

Read more

Resolve scripts crashing when variables are declared with a DataType of Alias in MapBasic

Read more

How To download MapBasic 12.5.1 from?

Read more

How To Assign strings column values using table names stored in variables in MapBasic.

Read more

Shell tool: Creates an empty copy or ‘shell’ of a selected table in MapBasic

Read more

How to compile a MapBasic program in Russian text

Read more

How to create polylines from a series of points using MapBasic?

Read more

How to access advanced features when executing Save Window statement via MapBasic

Read more

How to test if a value is of a numeric or character data type using Mapbasic

Read more

Running an Integrated Mapping application from a user specified Windows folder using MapInfo Pro

Read more

Is there a way to set the Map Window ID number via MapBasic?

Read more

How to rotate an individual symbol in MapBasic

Read more

How to populate a column with the starting and ending coordinates of a polyline in MapInfo Pro

Read more

Converting a table of coordinates to a table of lines from the MapBasic window in MapInfo Professional

Read more

Installing different versions of MapInfo Pro and MapBasic on the same computer

Read more

How to insert objects and data from a query of one table into another table using MapBasic

Read more

How to enter values for Date/Time data types in a browser or Table>update column within MapInfo Pro

Read more

How to find more information about MapInfo MapBasic v16 64-bit ribbon interface and commands

Read more

Using the new conditional IIf() MapBasic function in MapInfo Pro

Read more

How to update the style of a selection of lines/polylines automatically in MapInfo Pro

Read more

Why does MapBasic 12.5.1 64-bit install by default to a PATH of C:Program Files (x86) and not the expected C:Program Files?

Read more

Creating a polygon automatically from a table of points in MapInfo Professional

Read more

How to setup and Echo a custom symbol truetype font in the MapBasic Window inside of MapInfo Pro

Read more

Deleting records that are based on a join using MapBasic or within MapInfo Pro

Read more

How to calculate the DAT file size of a MapInfo table

Read more

Using MapInfo Raster SDK and MapBasic functions to return the projection and EPSG code of a data grid

Read more

Finding the SUM of time columns in MapInfo Pro

Read more

How to enquire about AccsMap for MapInfo Professional and Runtime

Read more

How to use animation in Mapbasic with code sample

Read more

How to determine the lengths of each side of a polygon in MapInfo Professional

Read more

Finding integrated mapping examples in MapInfo Pro/MapBasic

Read more

How to use the Alias variable type in MapBasic

Read more

Running SQL Select queries using wildcards in MapInfo Pro

Read more

Silent Installation examples for MapInfo MapBasic

Read more

How to create a new column with a sequential index — MapInfo Pro

Read more

Creating a New Table and Create Points using the MapBasic Window

Read more

How to load a MapBasic tool for all users in MapInfo Professional

Read more

Configuring PDF Printer Paper Sizes in MapInfo Professional

Read more

How to create lines from pairs of x/y coordinates in MapInfo Pro

Read more

Resolve Unable to create XML document handle. XML Library Load Error: Required XML Version Unavailable in MapInfo Pro

Read more

Resolve MapInfo Pro: INCLUDE file syntax wrong

Read more

Resolve MapInfo / MapBasic runtime error when using ObjectInfo function

Read more

MapBasic script does not capture the WMS error when the WMS server is not available

Read more

Resolve how to select the Select(canvas), Pan(canvas), Zoom In(canvas) and Zoom Out(canvas) tools in Layout Designer in MapBasic 64-bit

Read more

Resolve issue where reparenting of document windows does not work in MapInfo Professional 12.5.3 (x64)

Read more

Resolve running a MapBasic program as windows scheduled task

Read more

Not all tools from the 32-bit version of MapInfo Professional appearing in the 64-bit version

Read more

Resolve the MapInfo Professional Query optimization bug — index file not closed — Bug

Read more

Resolve error when comparing two non-printable characters in MapBasic 64-bit

Read more

Resolve issue with the OnError command not working via the MapBasic Window in MapInfo Pro

Read more

Unable to print to PDF using MapBasic after upgrading from MapInfo Professional v12.5 to v15

Read more

MapInfo Professional Dataflow error

Read more

Uninstall error: This operation requires elevated privileges. Restart by inserting the product DVD/CD into the media player and double-clicking the setup.exe file. This setup will now abort — MapInfo Pro

Read more

Error cannot find MapBasic application file when MapInfo Pro starts up

Read more

Resolve issue where feature coordinates are not correct when issued with a MapBasic script

Read more

Resolve issue in MapInfo Pro where Custom tooltips appear at the top of the button instead of at the bottom where the cursor lies

Read more

How to resolve MapInfo Pro 32 bit error Unhandled Exception while running custom application

Read more

Resolve MapInfo or MapBasic locking folder when using FileOpenDlg

Read more

Resolve Overflow error when trying to return a value for SYS_INFO_APPIDISPATCH using MapBasic with MapInfo Pro 64-bit on Windows 10

Read more

Resolve issue where the MapInfo Professional ObjectLen calculation varies when compared to length from data provider

Read more

Unable to run Check Regions on all objects in my table using MapInfo Pro

Read more

Resolving «MapInfo Pro could not convert data. Unable to update table» error message

Read more

Resolve map window remains hidden after using SysMenuClose command in MapInfo Pro 64-bit

Read more

Resolve text buffer issues in the MapBasic Window in MapInfo Pro v15.2.1

Read more

Resolve issue around MapInfo z-axis, z-value support in Native or NativeX TAB format

Read more

Resolve the issue in MapInfo Pro 15.2 where label does not appear when trying to display a label containing a variable

Read more

Resolving problems with projection bounds for EPSG 25832 and 25833 in middle Europe when using MapInfo

Read more

Resolve error when loading a MapBasic application: «Unable to allocate memory. Unable to read application file.»

Read more

Problems opening TAB files in Google Earth

Read more

Resolving MapBasic application returning Longitude/Latitude coordinates despite all tables being in British National Grid

Read more

How to use a variable as a table name in a MapInfo Pro query

Read more

How to migrate a MapBasic 32 bit app that uses 32 bit Windows libraries to a MapInfo Pro 64 bit app

Read more

Integrated Mapping MapBasic applications fail with the error: «ActiveX can’t create object» on 64-bit versions

Read more

MapBasic compiler error: Cannot execute / MapInfow.exe file not found

Read more

How to use a CLSID in MapBasic to point to the My Computer directory

Read more

Is it possible for the ‘ProportionOverlap()’ function to work on Text objects in MapBasic?

Read more

How to suppress News Feed Notifications using MapBasic

Read more

MapInfo Pro color code table (picklist)

Read more

What should I know about Coordinate Systems when working with MapBasic

Read more

Using MapInfo MapBasic to find a Windows operating system Environment variable

Read more

How to lock the position of the frames and object in a Layout Designer Window using a MapBasic command

Read more

How to alter a text frame on a LayoutDesigner using MapBasic 64-bit

Read more

How to move points on a map with MapBasic

Read more

Locating the RibbonLib for MapBasic

Read more

Using the MOD operator and integer division in MapInfo Professional

Read more

How to resize the preview panel in a Layout Designer Window using a MapBasic (.NET) command

Read more

How to perform a MapBasic function that will return the name and path of the current workspace

Read more

Does MapBasic command PrintWin allows PDF as an output?

Read more

How to use a variable name that is the same as a field name in the MapBasic Window

Read more

Developer Dojo: Porting your MapBasic applications to the Ribbon based interface

Read more

How to change the current workspace directory in MapBasic

Read more

How can I make my queries run faster in MapInfo Pro or MapBasic

Read more

How to take advantage of the new MapBasic Exec() function in MapInfo Pro

Read more

Resolve open table function does not open the requested table file

Read more

URI path support in MapInfo Pro: Frequently Asked Questions

Read more

Toggling Legend Grid Lines using MapInfo Pro and MapBasic

Read more

Count values for a Thematic map not displaying consistent justification in MapInfo Pro Legend Designer

Read more

Resolving issue in MapInfo Pro 17.0.1 where custom mbx fails to create legacy tab as it did in un-patched Pro 17.0

Read more

Resolve scripts crashing when variables are declared with a DataType of Alias in MapBasic

Read more

How To download MapBasic 12.5.1 from?

Read more

How To Assign strings column values using table names stored in variables in MapBasic.

Read more

Shell tool: Creates an empty copy or ‘shell’ of a selected table in MapBasic

Read more

How to compile a MapBasic program in Russian text

Read more

How to create polylines from a series of points using MapBasic?

Read more

How to access advanced features when executing Save Window statement via MapBasic

Read more

How to test if a value is of a numeric or character data type using Mapbasic

Read more

Running an Integrated Mapping application from a user specified Windows folder using MapInfo Pro

Read more

Is there a way to set the Map Window ID number via MapBasic?

Read more

How to rotate an individual symbol in MapBasic

Read more

How to populate a column with the starting and ending coordinates of a polyline in MapInfo Pro

Read more

Converting a table of coordinates to a table of lines from the MapBasic window in MapInfo Professional

Read more

Installing different versions of MapInfo Pro and MapBasic on the same computer

Read more

How to insert objects and data from a query of one table into another table using MapBasic

Read more

How to enter values for Date/Time data types in a browser or Table>update column within MapInfo Pro

Read more

How to find more information about MapInfo MapBasic v16 64-bit ribbon interface and commands

Read more

Using the new conditional IIf() MapBasic function in MapInfo Pro

Read more

How to update the style of a selection of lines/polylines automatically in MapInfo Pro

Read more

Why does MapBasic 12.5.1 64-bit install by default to a PATH of C:Program Files (x86) and not the expected C:Program Files?

Read more

Creating a polygon automatically from a table of points in MapInfo Professional

Read more

How to setup and Echo a custom symbol truetype font in the MapBasic Window inside of MapInfo Pro

Read more

Deleting records that are based on a join using MapBasic or within MapInfo Pro

Read more

How to calculate the DAT file size of a MapInfo table

Read more

Using MapInfo Raster SDK and MapBasic functions to return the projection and EPSG code of a data grid

Read more

Finding the SUM of time columns in MapInfo Pro

Read more

How to enquire about AccsMap for MapInfo Professional and Runtime

Read more

How to use animation in Mapbasic with code sample

Read more

How to determine the lengths of each side of a polygon in MapInfo Professional

Read more

Finding integrated mapping examples in MapInfo Pro/MapBasic

Read more

How to use the Alias variable type in MapBasic

Read more

Running SQL Select queries using wildcards in MapInfo Pro

Read more

Silent Installation examples for MapInfo MapBasic

Read more

How to create a new column with a sequential index — MapInfo Pro

Read more

Creating a New Table and Create Points using the MapBasic Window

Read more

How to load a MapBasic tool for all users in MapInfo Professional

Read more

Configuring PDF Printer Paper Sizes in MapInfo Professional

Read more

How to create lines from pairs of x/y coordinates in MapInfo Pro

Read more

Resolve Unable to create XML document handle. XML Library Load Error: Required XML Version Unavailable in MapInfo Pro

Read more

Resolve MapInfo Pro: INCLUDE file syntax wrong

Read more

Resolve MapInfo / MapBasic runtime error when using ObjectInfo function

Read more

MapBasic script does not capture the WMS error when the WMS server is not available

Read more

Resolve how to select the Select(canvas), Pan(canvas), Zoom In(canvas) and Zoom Out(canvas) tools in Layout Designer in MapBasic 64-bit

Read more

Resolve issue where reparenting of document windows does not work in MapInfo Professional 12.5.3 (x64)

Read more

Resolve running a MapBasic program as windows scheduled task

Read more

Not all tools from the 32-bit version of MapInfo Professional appearing in the 64-bit version

Read more

Resolve the MapInfo Professional Query optimization bug — index file not closed — Bug

Read more

Resolve error when comparing two non-printable characters in MapBasic 64-bit

Read more

Resolve issue with the OnError command not working via the MapBasic Window in MapInfo Pro

Read more

Unable to print to PDF using MapBasic after upgrading from MapInfo Professional v12.5 to v15

Read more

MapInfo Professional Dataflow error

Read more

Uninstall error: This operation requires elevated privileges. Restart by inserting the product DVD/CD into the media player and double-clicking the setup.exe file. This setup will now abort — MapInfo Pro

Read more

Error cannot find MapBasic application file when MapInfo Pro starts up

Read more

Resolve issue where feature coordinates are not correct when issued with a MapBasic script

Read more

Resolve issue in MapInfo Pro where Custom tooltips appear at the top of the button instead of at the bottom where the cursor lies

Read more

How to resolve MapInfo Pro 32 bit error Unhandled Exception while running custom application

Read more

Resolve MapInfo or MapBasic locking folder when using FileOpenDlg

Read more

Resolve Overflow error when trying to return a value for SYS_INFO_APPIDISPATCH using MapBasic with MapInfo Pro 64-bit on Windows 10

Read more

Resolve issue where the MapInfo Professional ObjectLen calculation varies when compared to length from data provider

Read more

Unable to run Check Regions on all objects in my table using MapInfo Pro

Read more

Resolving «MapInfo Pro could not convert data. Unable to update table» error message

Read more

Resolve map window remains hidden after using SysMenuClose command in MapInfo Pro 64-bit

Read more

Resolve text buffer issues in the MapBasic Window in MapInfo Pro v15.2.1

Read more

Resolve issue around MapInfo z-axis, z-value support in Native or NativeX TAB format

Read more

Resolve the issue in MapInfo Pro 15.2 where label does not appear when trying to display a label containing a variable

Read more

Resolving problems with projection bounds for EPSG 25832 and 25833 in middle Europe when using MapInfo

Read more

Resolve error when loading a MapBasic application: «Unable to allocate memory. Unable to read application file.»

Read more

Problems opening TAB files in Google Earth

Read more

Resolving MapBasic application returning Longitude/Latitude coordinates despite all tables being in British National Grid

Read more

How to use a variable as a table name in a MapInfo Pro query

Read more

How to migrate a MapBasic 32 bit app that uses 32 bit Windows libraries to a MapInfo Pro 64 bit app

Read more

Integrated Mapping MapBasic applications fail with the error: «ActiveX can’t create object» on 64-bit versions

Read more

MapBasic compiler error: Cannot execute / MapInfow.exe file not found

Read more

How to use a CLSID in MapBasic to point to the My Computer directory

Read more

Is it possible for the ‘ProportionOverlap()’ function to work on Text objects in MapBasic?

Read more

How to suppress News Feed Notifications using MapBasic

Read more

MapInfo Pro color code table (picklist)

Read more

What should I know about Coordinate Systems when working with MapBasic

Read more

Using MapInfo MapBasic to find a Windows operating system Environment variable

Read more

How to lock the position of the frames and object in a Layout Designer Window using a MapBasic command

Read more

How to alter a text frame on a LayoutDesigner using MapBasic 64-bit

Read more

How to move points on a map with MapBasic

Read more

Locating the RibbonLib for MapBasic

Read more

Using the MOD operator and integer division in MapInfo Professional

Read more

How to resize the preview panel in a Layout Designer Window using a MapBasic (.NET) command

Read more

How to perform a MapBasic function that will return the name and path of the current workspace

Read more

Does MapBasic command PrintWin allows PDF as an output?

Read more

How to use a variable name that is the same as a field name in the MapBasic Window

Read more

Developer Dojo: Porting your MapBasic applications to the Ribbon based interface

Read more

How to change the current workspace directory in MapBasic

Read more

How can I make my queries run faster in MapInfo Pro or MapBasic

Read more

How to take advantage of the new MapBasic Exec() function in MapInfo Pro

Read more

Resolve open table function does not open the requested table file

Read more

URI path support in MapInfo Pro: Frequently Asked Questions

Read more

Toggling Legend Grid Lines using MapInfo Pro and MapBasic

Read more

Count values for a Thematic map not displaying consistent justification in MapInfo Pro Legend Designer

Read more

Resolving issue in MapInfo Pro 17.0.1 where custom mbx fails to create legacy tab as it did in un-patched Pro 17.0

Read more

Resolve scripts crashing when variables are declared with a DataType of Alias in MapBasic

Read more

How To download MapBasic 12.5.1 from?

Read more

How To Assign strings column values using table names stored in variables in MapBasic.

Read more

Shell tool: Creates an empty copy or ‘shell’ of a selected table in MapBasic

Read more

How to compile a MapBasic program in Russian text

Read more

How to create polylines from a series of points using MapBasic?

Read more

How to access advanced features when executing Save Window statement via MapBasic

Read more

How to test if a value is of a numeric or character data type using Mapbasic

Read more

Running an Integrated Mapping application from a user specified Windows folder using MapInfo Pro

Read more

Is there a way to set the Map Window ID number via MapBasic?

Read more

How to rotate an individual symbol in MapBasic

Read more

How to populate a column with the starting and ending coordinates of a polyline in MapInfo Pro

Read more

Converting a table of coordinates to a table of lines from the MapBasic window in MapInfo Professional

Read more

Installing different versions of MapInfo Pro and MapBasic on the same computer

Read more

How to insert objects and data from a query of one table into another table using MapBasic

Read more

How to enter values for Date/Time data types in a browser or Table>update column within MapInfo Pro

Read more

How to find more information about MapInfo MapBasic v16 64-bit ribbon interface and commands

Read more

Using the new conditional IIf() MapBasic function in MapInfo Pro

Read more

How to update the style of a selection of lines/polylines automatically in MapInfo Pro

Read more

Why does MapBasic 12.5.1 64-bit install by default to a PATH of C:Program Files (x86) and not the expected C:Program Files?

Read more

Creating a polygon automatically from a table of points in MapInfo Professional

Read more

How to setup and Echo a custom symbol truetype font in the MapBasic Window inside of MapInfo Pro

Read more

Deleting records that are based on a join using MapBasic or within MapInfo Pro

Read more

How to calculate the DAT file size of a MapInfo table

Read more

Using MapInfo Raster SDK and MapBasic functions to return the projection and EPSG code of a data grid

Read more

Finding the SUM of time columns in MapInfo Pro

Read more

How to enquire about AccsMap for MapInfo Professional and Runtime

Read more

How to use animation in Mapbasic with code sample

Read more

How to determine the lengths of each side of a polygon in MapInfo Professional

Read more

Finding integrated mapping examples in MapInfo Pro/MapBasic

Read more

How to use the Alias variable type in MapBasic

Read more

Running SQL Select queries using wildcards in MapInfo Pro

Read more

Silent Installation examples for MapInfo MapBasic

Read more

How to create a new column with a sequential index — MapInfo Pro

Read more

Creating a New Table and Create Points using the MapBasic Window

Read more

How to load a MapBasic tool for all users in MapInfo Professional

Read more

Configuring PDF Printer Paper Sizes in MapInfo Professional

Read more

How to create lines from pairs of x/y coordinates in MapInfo Pro

Read more

Resolve Unable to create XML document handle. XML Library Load Error: Required XML Version Unavailable in MapInfo Pro

Read more

Resolve MapInfo Pro: INCLUDE file syntax wrong

Read more

Resolve MapInfo / MapBasic runtime error when using ObjectInfo function

Read more

MapBasic script does not capture the WMS error when the WMS server is not available

Read more

Resolve how to select the Select(canvas), Pan(canvas), Zoom In(canvas) and Zoom Out(canvas) tools in Layout Designer in MapBasic 64-bit

Read more

Resolve issue where reparenting of document windows does not work in MapInfo Professional 12.5.3 (x64)

Read more

Resolve running a MapBasic program as windows scheduled task

Read more

Not all tools from the 32-bit version of MapInfo Professional appearing in the 64-bit version

Read more

Resolve the MapInfo Professional Query optimization bug — index file not closed — Bug

Read more

Resolve error when comparing two non-printable characters in MapBasic 64-bit

Read more

Resolve issue with the OnError command not working via the MapBasic Window in MapInfo Pro

Read more

Unable to print to PDF using MapBasic after upgrading from MapInfo Professional v12.5 to v15

Read more

MapInfo Professional Dataflow error

Read more

Uninstall error: This operation requires elevated privileges. Restart by inserting the product DVD/CD into the media player and double-clicking the setup.exe file. This setup will now abort — MapInfo Pro

Read more

Error cannot find MapBasic application file when MapInfo Pro starts up

Read more

Resolve issue where feature coordinates are not correct when issued with a MapBasic script

Read more

Resolve issue in MapInfo Pro where Custom tooltips appear at the top of the button instead of at the bottom where the cursor lies

Read more

How to resolve MapInfo Pro 32 bit error Unhandled Exception while running custom application

Read more

Resolve MapInfo or MapBasic locking folder when using FileOpenDlg

Read more

Resolve Overflow error when trying to return a value for SYS_INFO_APPIDISPATCH using MapBasic with MapInfo Pro 64-bit on Windows 10

Read more

Resolve issue where the MapInfo Professional ObjectLen calculation varies when compared to length from data provider

Read more

Unable to run Check Regions on all objects in my table using MapInfo Pro

Read more

Resolving «MapInfo Pro could not convert data. Unable to update table» error message

Read more

Resolve map window remains hidden after using SysMenuClose command in MapInfo Pro 64-bit

Read more

Resolve text buffer issues in the MapBasic Window in MapInfo Pro v15.2.1

Read more

Resolve issue around MapInfo z-axis, z-value support in Native or NativeX TAB format

Read more

Resolve the issue in MapInfo Pro 15.2 where label does not appear when trying to display a label containing a variable

Read more

Resolving problems with projection bounds for EPSG 25832 and 25833 in middle Europe when using MapInfo

Read more

Resolve error when loading a MapBasic application: «Unable to allocate memory. Unable to read application file.»

Read more

Problems opening TAB files in Google Earth

Read more

Resolving MapBasic application returning Longitude/Latitude coordinates despite all tables being in British National Grid

Read more

How to use a variable as a table name in a MapInfo Pro query

Read more

How to migrate a MapBasic 32 bit app that uses 32 bit Windows libraries to a MapInfo Pro 64 bit app

Read more

Integrated Mapping MapBasic applications fail with the error: «ActiveX can’t create object» on 64-bit versions

Read more

MapBasic compiler error: Cannot execute / MapInfow.exe file not found

Read more

How to use a CLSID in MapBasic to point to the My Computer directory

Read more

Locating the RibbonLib for MapBasic

Read more

Configuring the ZM output values for Shape files with Universal Translator via Command-Line

Read more

How to find the MapInfo Standard Tools code sample in MapBasic

Read more

How to create polylines from a series of points using MapBasic?

Read more

How to perform a MapBasic function that will return the name and path of the current workspace

Read more

Is it possible to create custom statements for MapBasic applications?

Read more

How to compile a .MBX file instead of a .MBO file in MapBasic

Read more

Why does MapBasic 12.5.1 64-bit install by default to a PATH of C:Program Files (x86) and not the expected C:Program Files?

Read more

Resolve Unable to create XML document handle. XML Library Load Error: Required XML Version Unavailable in MapInfo Pro

Read more

How to create lines from pairs of x/y coordinates in MapInfo Pro

Read more

Is it possible for the ‘ProportionOverlap()’ function to work on Text objects in MapBasic?

Read more

Resolve scripts crashing when variables are declared with a DataType of Alias in MapBasic

Read more

Error cannot find MapBasic application file when MapInfo Pro starts up

Read more

Resolve error «Invalid polygon number.Alter Object No when Alter Object Node Remove failed» when called in MapBasic application

Read more

How to access advanced features when executing Save Window statement via MapBasic

Read more

How to migrate a MapBasic 32 bit app that uses 32 bit Windows libraries to a MapInfo Pro 64 bit app

Read more

Using MapInfo MapBasic to find a Windows operating system Environment variable

Read more

How to enter values for Date/Time data types in a browser or Table>update column within MapInfo Pro

Read more

Count values for a Thematic map not displaying consistent justification in MapInfo Pro Legend Designer

Read more

How to resize the preview panel in a Layout Designer Window using a MapBasic (.NET) command

Read more

How to lock the position of the frames and object in a Layout Designer Window using a MapBasic command

Read more

Resolve the issue in MapInfo Pro 15.2 where label does not appear when trying to display a label containing a variable

Read more

How to find more information about MapInfo MapBasic v16 64-bit ribbon interface and commands

Read more

How to move the legacy tab into a floating map window in MapInfo Profesional 64-bit

Read more

Resolve error message «There was a problem sending the command to the program» when running a MapBasic program from Windows Explorer

Read more

Uninstall error: This operation requires elevated privileges. Restart by inserting the product DVD/CD into the media player and double-clicking the setup.exe file. This setup will now abort — MapInfo Pro

Read more

MapBasic Application stops working after too many .tmp files are generated

Read more

Resolve issue where the MapInfo Professional ObjectLen calculation varies when compared to length from data provider

Read more

Scripting Samurai: Getting Started with the MapBasic window

Read more

Finding integrated mapping examples in MapInfo Pro/MapBasic

Read more

«ODBC Error: [Infomix OBDC Driver] Inexact character conversion during translation. Unable to refresh linked table.» message from MapBasic Server Refresh Command

Read more

How to batch-update the position of points on a map using MapBasic

Read more

Resolve the MapBasic error: «Invalid Dialog preserve command. There is no active dialog» 

Read more

How to populate a column with the starting and ending coordinates of a polyline in MapInfo Pro

Read more

Creating a polygon automatically from a table of points in MapInfo Professional

Read more

How to use a variable as a table name in a MapInfo Pro query

Read more

Changing 32-bit MapBasic scripts to be compatible in 64-bit versions of MapBasic

Read more

How to load a MapBasic tool for all users in MapInfo Professional

Read more

Shell tool: Creates an empty copy or ‘shell’ of a selected table in MapBasic

Read more

How to rotate an individual symbol in MapBasic

Read more

Does MapBasic command PrintWin allows PDF as an output?

Read more

How to insert objects and data from a query of one table into another table using MapBasic

Read more

Resolve text buffer issues in the MapBasic Window in MapInfo Pro v15.2.1

Read more

Configuring PDF Printer Paper Sizes in MapInfo Professional

Read more

Resolving issue in MapInfo Pro 17.0.1 where custom mbx fails to create legacy tab as it did in un-patched Pro 17.0

Read more

Problems opening TAB files in Google Earth

Read more

Customizing the MapInfo Pro Ribbon Interface

Read more

Resolve issue where User cannot use Custom Icons in DLL(s) in MapBasic 64 bit

Read more

Resolve error when comparing two non-printable characters in MapBasic 64-bit

Read more

How to alter a text frame on a LayoutDesigner using MapBasic 64-bit

Read more

How to setup and Echo a custom symbol truetype font in the MapBasic Window inside of MapInfo Pro

Read more

How to Move Around in the Integrated Development Environment of MapInfo Pro

Read more

How to use a CLSID in MapBasic to point to the My Computer directory

Read more

Integrated Mapping MapBasic applications fail with the error: «ActiveX can’t create object» on 64-bit versions

Read more

How to suppress News Feed Notifications using MapBasic

Read more

Finding the SUM of time columns in MapInfo Pro

Read more

What should I know about Coordinate Systems when working with MapBasic

Read more

How to use the Alias variable type in MapBasic

Read more

Resolve the MapInfo Professional Query optimization bug — index file not closed — Bug

Read more

Running SQL Select queries using wildcards in MapInfo Pro

Read more

Resolve issue around MapInfo z-axis, z-value support in Native or NativeX TAB format

Read more

Installing different versions of MapInfo Pro and MapBasic on the same computer

Read more

Unable to run Check Regions on all objects in my table using MapInfo Pro

Read more

How to hide the ribbon in a Layout Designer Window using a MapBasic command

Read more

How to take advantage of the new MapBasic Exec() function in MapInfo Pro

Read more

Resolving MapBasic application returning Longitude/Latitude coordinates despite all tables being in British National Grid

Read more

Converting a table of coordinates to a table of lines from the MapBasic window in MapInfo Professional

Read more

Changing the default view of a Map window with the MapBasic window in MapInfo Professional

Read more

How To Assign strings column values using table names stored in variables in MapBasic.

Read more

Errors and compatibility issues with MapInfo Pro third party tools

Read more

Silent Installation examples for MapInfo MapBasic

Read more

How to enquire about AccsMap for MapInfo Professional and Runtime

Read more

How to resolve MapInfo Pro 32 bit error Unhandled Exception while running custom application

Read more

Resolve error when loading a MapBasic application: «Unable to allocate memory. Unable to read application file.»

Read more

How to set the page orientation in MapBasic® when Save Image As output not in correct orientation

Read more

MapInfo Professional Dataflow error

Read more

New method GetStatusFieldText for MapInfo Pro 2019.1 and Integrated Mapping Applications

Read more

Using MapInfo Raster SDK and MapBasic functions to return the projection and EPSG code of a data grid

Read more

Unable to print to PDF using MapBasic after upgrading from MapInfo Professional v12.5 to v15

Read more

Toggling Legend Grid Lines using MapInfo Pro and MapBasic

Read more

How to change the current workspace directory in MapBasic

Read more

Clarification of «Order Clause» in «Set Legend» and «Create Designer Legend» in MapBasic

Read more

Resolve Overflow error when trying to return a value for SYS_INFO_APPIDISPATCH using MapBasic with MapInfo Pro 64-bit on Windows 10

Read more

Resolve how to select the Select(canvas), Pan(canvas), Zoom In(canvas) and Zoom Out(canvas) tools in Layout Designer in MapBasic 64-bit

Read more

How to use the MapBasic switch command : -server to start MapBasic silently

Read more

Developer Dojo: Porting your MapBasic applications to the Ribbon based interface

Read more

Resolve running a MapBasic program as windows scheduled task

Read more

MapInfo Pro color code table (picklist)

Read more

Using the new conditional IIf() MapBasic function in MapInfo Pro

Read more

How to use a variable name that is the same as a field name in the MapBasic Window

Read more

Resolving «MapInfo Pro could not convert data. Unable to update table» error message

Read more

How to test if a value is of a numeric or character data type using Mapbasic

Read more

How to compile a MapBasic program in Russian text

Read more

Resolve issue where reparenting of document windows does not work in MapInfo Professional 12.5.3 (x64)

Read more

Running an Integrated Mapping application from a user specified Windows folder using MapInfo Pro

Read more

Is there a way to set the Map Window ID number via MapBasic?

Read more

Locating the RibbonLib for MapBasic

Read more

Configuring the ZM output values for Shape files with Universal Translator via Command-Line

Read more

How to find the MapInfo Standard Tools code sample in MapBasic

Read more

How to create polylines from a series of points using MapBasic?

Read more

How to perform a MapBasic function that will return the name and path of the current workspace

Read more

Is it possible to create custom statements for MapBasic applications?

Read more

How to compile a .MBX file instead of a .MBO file in MapBasic

Read more

Why does MapBasic 12.5.1 64-bit install by default to a PATH of C:Program Files (x86) and not the expected C:Program Files?

Read more

Resolve Unable to create XML document handle. XML Library Load Error: Required XML Version Unavailable in MapInfo Pro

Read more

How to create lines from pairs of x/y coordinates in MapInfo Pro

Read more

Is it possible for the ‘ProportionOverlap()’ function to work on Text objects in MapBasic?

Read more

Resolve scripts crashing when variables are declared with a DataType of Alias in MapBasic

Read more

Error cannot find MapBasic application file when MapInfo Pro starts up

Read more

Resolve error «Invalid polygon number.Alter Object No when Alter Object Node Remove failed» when called in MapBasic application

Read more

How to access advanced features when executing Save Window statement via MapBasic

Read more

How to migrate a MapBasic 32 bit app that uses 32 bit Windows libraries to a MapInfo Pro 64 bit app

Read more

Using MapInfo MapBasic to find a Windows operating system Environment variable

Read more

How to enter values for Date/Time data types in a browser or Table>update column within MapInfo Pro

Read more

Count values for a Thematic map not displaying consistent justification in MapInfo Pro Legend Designer

Read more

How to resize the preview panel in a Layout Designer Window using a MapBasic (.NET) command

Read more

How to lock the position of the frames and object in a Layout Designer Window using a MapBasic command

Read more

Resolve the issue in MapInfo Pro 15.2 where label does not appear when trying to display a label containing a variable

Read more

How to find more information about MapInfo MapBasic v16 64-bit ribbon interface and commands

Read more

How to move the legacy tab into a floating map window in MapInfo Profesional 64-bit

Read more

Resolve error message «There was a problem sending the command to the program» when running a MapBasic program from Windows Explorer

Read more

Uninstall error: This operation requires elevated privileges. Restart by inserting the product DVD/CD into the media player and double-clicking the setup.exe file. This setup will now abort — MapInfo Pro

Read more

MapBasic Application stops working after too many .tmp files are generated

Read more

Resolve issue where the MapInfo Professional ObjectLen calculation varies when compared to length from data provider

Read more

Scripting Samurai: Getting Started with the MapBasic window

Read more

Finding integrated mapping examples in MapInfo Pro/MapBasic

Read more

«ODBC Error: [Infomix OBDC Driver] Inexact character conversion during translation. Unable to refresh linked table.» message from MapBasic Server Refresh Command

Read more

How to batch-update the position of points on a map using MapBasic

Read more

Resolve the MapBasic error: «Invalid Dialog preserve command. There is no active dialog» 

Read more

How to populate a column with the starting and ending coordinates of a polyline in MapInfo Pro

Read more

Creating a polygon automatically from a table of points in MapInfo Professional

Read more

How to use a variable as a table name in a MapInfo Pro query

Read more

Changing 32-bit MapBasic scripts to be compatible in 64-bit versions of MapBasic

Read more

How to load a MapBasic tool for all users in MapInfo Professional

Read more

Shell tool: Creates an empty copy or ‘shell’ of a selected table in MapBasic

Read more

How to rotate an individual symbol in MapBasic

Read more

Does MapBasic command PrintWin allows PDF as an output?

Read more

How to insert objects and data from a query of one table into another table using MapBasic

Read more

Resolve text buffer issues in the MapBasic Window in MapInfo Pro v15.2.1

Read more

Configuring PDF Printer Paper Sizes in MapInfo Professional

Read more

Resolving issue in MapInfo Pro 17.0.1 where custom mbx fails to create legacy tab as it did in un-patched Pro 17.0

Read more

Problems opening TAB files in Google Earth

Read more

Customizing the MapInfo Pro Ribbon Interface

Read more

Resolve issue where User cannot use Custom Icons in DLL(s) in MapBasic 64 bit

Read more

Resolve error when comparing two non-printable characters in MapBasic 64-bit

Read more

How to alter a text frame on a LayoutDesigner using MapBasic 64-bit

Read more

How to setup and Echo a custom symbol truetype font in the MapBasic Window inside of MapInfo Pro

Read more

How to Move Around in the Integrated Development Environment of MapInfo Pro

Read more

How to use a CLSID in MapBasic to point to the My Computer directory

Read more

Integrated Mapping MapBasic applications fail with the error: «ActiveX can’t create object» on 64-bit versions

Read more

How to suppress News Feed Notifications using MapBasic

Read more

Finding the SUM of time columns in MapInfo Pro

Read more

What should I know about Coordinate Systems when working with MapBasic

Read more

How to use the Alias variable type in MapBasic

Read more

Resolve the MapInfo Professional Query optimization bug — index file not closed — Bug

Read more

Running SQL Select queries using wildcards in MapInfo Pro

Read more

Resolve issue around MapInfo z-axis, z-value support in Native or NativeX TAB format

Read more

Installing different versions of MapInfo Pro and MapBasic on the same computer

Read more

Unable to run Check Regions on all objects in my table using MapInfo Pro

Read more

How to hide the ribbon in a Layout Designer Window using a MapBasic command

Read more

How to take advantage of the new MapBasic Exec() function in MapInfo Pro

Read more

Resolving MapBasic application returning Longitude/Latitude coordinates despite all tables being in British National Grid

Read more

Converting a table of coordinates to a table of lines from the MapBasic window in MapInfo Professional

Read more

Changing the default view of a Map window with the MapBasic window in MapInfo Professional

Read more

How To Assign strings column values using table names stored in variables in MapBasic.

Read more

Errors and compatibility issues with MapInfo Pro third party tools

Read more

Silent Installation examples for MapInfo MapBasic

Read more

How to enquire about AccsMap for MapInfo Professional and Runtime

Read more

How to resolve MapInfo Pro 32 bit error Unhandled Exception while running custom application

Read more

Resolve error when loading a MapBasic application: «Unable to allocate memory. Unable to read application file.»

Read more

How to set the page orientation in MapBasic® when Save Image As output not in correct orientation

Read more

MapInfo Professional Dataflow error

Read more

New method GetStatusFieldText for MapInfo Pro 2019.1 and Integrated Mapping Applications

Read more

Using MapInfo Raster SDK and MapBasic functions to return the projection and EPSG code of a data grid

Read more

Unable to print to PDF using MapBasic after upgrading from MapInfo Professional v12.5 to v15

Read more

Toggling Legend Grid Lines using MapInfo Pro and MapBasic

Read more

How to change the current workspace directory in MapBasic

Read more

Clarification of «Order Clause» in «Set Legend» and «Create Designer Legend» in MapBasic

Read more

Resolve Overflow error when trying to return a value for SYS_INFO_APPIDISPATCH using MapBasic with MapInfo Pro 64-bit on Windows 10

Read more

Resolve how to select the Select(canvas), Pan(canvas), Zoom In(canvas) and Zoom Out(canvas) tools in Layout Designer in MapBasic 64-bit

Read more

How to use the MapBasic switch command : -server to start MapBasic silently

Read more

Developer Dojo: Porting your MapBasic applications to the Ribbon based interface

Read more

Resolve running a MapBasic program as windows scheduled task

Read more

MapInfo Pro color code table (picklist)

Read more

Using the new conditional IIf() MapBasic function in MapInfo Pro

Read more

How to use a variable name that is the same as a field name in the MapBasic Window

Read more

Resolving «MapInfo Pro could not convert data. Unable to update table» error message

Read more

How to test if a value is of a numeric or character data type using Mapbasic

Read more

How to compile a MapBasic program in Russian text

Read more

Resolve issue where reparenting of document windows does not work in MapInfo Professional 12.5.3 (x64)

Read more

Running an Integrated Mapping application from a user specified Windows folder using MapInfo Pro

Read more

Is there a way to set the Map Window ID number via MapBasic?

Read more

Locating the RibbonLib for MapBasic

Read more

Configuring the ZM output values for Shape files with Universal Translator via Command-Line

Read more

How to find the MapInfo Standard Tools code sample in MapBasic

Read more

How to create polylines from a series of points using MapBasic?

Read more

How to perform a MapBasic function that will return the name and path of the current workspace

Read more

Is it possible to create custom statements for MapBasic applications?

Read more

How to compile a .MBX file instead of a .MBO file in MapBasic

Read more

Why does MapBasic 12.5.1 64-bit install by default to a PATH of C:Program Files (x86) and not the expected C:Program Files?

Read more

Resolve Unable to create XML document handle. XML Library Load Error: Required XML Version Unavailable in MapInfo Pro

Read more

How to create lines from pairs of x/y coordinates in MapInfo Pro

Read more

Is it possible for the ‘ProportionOverlap()’ function to work on Text objects in MapBasic?

Read more

Resolve scripts crashing when variables are declared with a DataType of Alias in MapBasic

Read more

Error cannot find MapBasic application file when MapInfo Pro starts up

Read more

Resolve error «Invalid polygon number.Alter Object No when Alter Object Node Remove failed» when called in MapBasic application

Read more

How to access advanced features when executing Save Window statement via MapBasic

Read more

How to migrate a MapBasic 32 bit app that uses 32 bit Windows libraries to a MapInfo Pro 64 bit app

Read more

Using MapInfo MapBasic to find a Windows operating system Environment variable

Read more

How to enter values for Date/Time data types in a browser or Table>update column within MapInfo Pro

Read more

Count values for a Thematic map not displaying consistent justification in MapInfo Pro Legend Designer

Read more

How to resize the preview panel in a Layout Designer Window using a MapBasic (.NET) command

Read more

How to lock the position of the frames and object in a Layout Designer Window using a MapBasic command

Read more

Resolve the issue in MapInfo Pro 15.2 where label does not appear when trying to display a label containing a variable

Read more

How to find more information about MapInfo MapBasic v16 64-bit ribbon interface and commands

Read more

How to move the legacy tab into a floating map window in MapInfo Profesional 64-bit

Read more

Resolve error message «There was a problem sending the command to the program» when running a MapBasic program from Windows Explorer

Read more

Uninstall error: This operation requires elevated privileges. Restart by inserting the product DVD/CD into the media player and double-clicking the setup.exe file. This setup will now abort — MapInfo Pro

Read more

MapBasic Application stops working after too many .tmp files are generated

Read more

Resolve issue where the MapInfo Professional ObjectLen calculation varies when compared to length from data provider

Read more

Scripting Samurai: Getting Started with the MapBasic window

Read more

Finding integrated mapping examples in MapInfo Pro/MapBasic

Read more

«ODBC Error: [Infomix OBDC Driver] Inexact character conversion during translation. Unable to refresh linked table.» message from MapBasic Server Refresh Command

Read more

How to batch-update the position of points on a map using MapBasic

Read more

Resolve the MapBasic error: «Invalid Dialog preserve command. There is no active dialog» 

Read more

How to populate a column with the starting and ending coordinates of a polyline in MapInfo Pro

Read more

Creating a polygon automatically from a table of points in MapInfo Professional

Read more

How to use a variable as a table name in a MapInfo Pro query

Read more

Changing 32-bit MapBasic scripts to be compatible in 64-bit versions of MapBasic

Read more

How to load a MapBasic tool for all users in MapInfo Professional

Read more

Shell tool: Creates an empty copy or ‘shell’ of a selected table in MapBasic

Read more

How to rotate an individual symbol in MapBasic

Read more

Does MapBasic command PrintWin allows PDF as an output?

Read more

How to insert objects and data from a query of one table into another table using MapBasic

Read more

Resolve text buffer issues in the MapBasic Window in MapInfo Pro v15.2.1

Read more

Configuring PDF Printer Paper Sizes in MapInfo Professional

Read more

Resolving issue in MapInfo Pro 17.0.1 where custom mbx fails to create legacy tab as it did in un-patched Pro 17.0

Read more

Problems opening TAB files in Google Earth

Read more

Customizing the MapInfo Pro Ribbon Interface

Read more

Resolve issue where User cannot use Custom Icons in DLL(s) in MapBasic 64 bit

Read more

Resolve error when comparing two non-printable characters in MapBasic 64-bit

Read more

How to alter a text frame on a LayoutDesigner using MapBasic 64-bit

Read more

How to setup and Echo a custom symbol truetype font in the MapBasic Window inside of MapInfo Pro

Read more

How to Move Around in the Integrated Development Environment of MapInfo Pro

Read more

How to use a CLSID in MapBasic to point to the My Computer directory

Read more

Integrated Mapping MapBasic applications fail with the error: «ActiveX can’t create object» on 64-bit versions

Read more

How to suppress News Feed Notifications using MapBasic

Read more

Finding the SUM of time columns in MapInfo Pro

Read more

What should I know about Coordinate Systems when working with MapBasic

Read more

How to use the Alias variable type in MapBasic

Read more

Resolve the MapInfo Professional Query optimization bug — index file not closed — Bug

Read more

Running SQL Select queries using wildcards in MapInfo Pro

Read more

Resolve issue around MapInfo z-axis, z-value support in Native or NativeX TAB format

Read more

Installing different versions of MapInfo Pro and MapBasic on the same computer

Read more

Unable to run Check Regions on all objects in my table using MapInfo Pro

Read more

How to hide the ribbon in a Layout Designer Window using a MapBasic command

Read more

How to take advantage of the new MapBasic Exec() function in MapInfo Pro

Read more

Resolving MapBasic application returning Longitude/Latitude coordinates despite all tables being in British National Grid

Read more

Converting a table of coordinates to a table of lines from the MapBasic window in MapInfo Professional

Read more

Changing the default view of a Map window with the MapBasic window in MapInfo Professional

Read more

How To Assign strings column values using table names stored in variables in MapBasic.

Read more

Errors and compatibility issues with MapInfo Pro third party tools

Read more

Silent Installation examples for MapInfo MapBasic

Read more

How to enquire about AccsMap for MapInfo Professional and Runtime

Read more

How to resolve MapInfo Pro 32 bit error Unhandled Exception while running custom application

Read more

Resolve error when loading a MapBasic application: «Unable to allocate memory. Unable to read application file.»

Read more

How to set the page orientation in MapBasic® when Save Image As output not in correct orientation

Read more

MapInfo Professional Dataflow error

Read more

New method GetStatusFieldText for MapInfo Pro 2019.1 and Integrated Mapping Applications

Read more

Using MapInfo Raster SDK and MapBasic functions to return the projection and EPSG code of a data grid

Read more

Unable to print to PDF using MapBasic after upgrading from MapInfo Professional v12.5 to v15

Read more

Toggling Legend Grid Lines using MapInfo Pro and MapBasic

Read more

How to change the current workspace directory in MapBasic

Read more

Clarification of «Order Clause» in «Set Legend» and «Create Designer Legend» in MapBasic

Read more

Resolve Overflow error when trying to return a value for SYS_INFO_APPIDISPATCH using MapBasic with MapInfo Pro 64-bit on Windows 10

Read more

Resolve how to select the Select(canvas), Pan(canvas), Zoom In(canvas) and Zoom Out(canvas) tools in Layout Designer in MapBasic 64-bit

Read more

How to use the MapBasic switch command : -server to start MapBasic silently

Read more

Developer Dojo: Porting your MapBasic applications to the Ribbon based interface

Read more

Resolve running a MapBasic program as windows scheduled task

Read more

MapInfo Pro color code table (picklist)

Read more

Using the new conditional IIf() MapBasic function in MapInfo Pro

Read more

How to use a variable name that is the same as a field name in the MapBasic Window

Read more

Resolving «MapInfo Pro could not convert data. Unable to update table» error message

Read more

How to test if a value is of a numeric or character data type using Mapbasic

Read more

How to compile a MapBasic program in Russian text

Read more

Resolve issue where reparenting of document windows does not work in MapInfo Professional 12.5.3 (x64)

Read more

Running an Integrated Mapping application from a user specified Windows folder using MapInfo Pro

Read more

Is there a way to set the Map Window ID number via MapBasic?

Read more

How to create lines from pairs of x/y coordinates in MapInfo Pro

Read more

Using the new conditional IIf() MapBasic function in MapInfo Pro

Read more

Creating a polygon automatically from a table of points in MapInfo Professional

Read more

Creating a New Table and Create Points using the MapBasic Window

Read more

Running SQL Select queries using wildcards in MapInfo Pro

Read more

«ODBC Error: [Infomix OBDC Driver] Inexact character conversion during translation. Unable to refresh linked table.» message from MapBasic Server Refresh Command

Read more

How to load a MapBasic tool for all users in MapInfo Professional

Read more

How to compile a .MBX file instead of a .MBO file in MapBasic

Read more

MapInfo Pro color code table (picklist)

Read more

How to insert objects and data from a query of one table into another table using MapBasic

Read more

Uninstall error: This operation requires elevated privileges. Restart by inserting the product DVD/CD into the media player and double-clicking the setup.exe file. This setup will now abort — MapInfo Pro

Read more

Finding the SUM of time columns in MapInfo Pro

Read more

How to create a new column with a sequential index — MapInfo Pro

Read more

Scripting Samurai: Getting Started with the MapBasic window

Read more

Using the MOD operator and integer division in MapInfo Professional

Read more

Resolving «MapInfo Pro could not convert data. Unable to update table» error message

Read more

Clarification of «Order Clause» in «Set Legend» and «Create Designer Legend» in MapBasic

Read more

How to take advantage of the new MapBasic Exec() function in MapInfo Pro

Read more

How to enter values for Date/Time data types in a browser or Table>update column within MapInfo Pro

Read more

How to find the MapInfo Standard Tools code sample in MapBasic

Read more

How to create polylines from a series of points using MapBasic?

Read more

How to calculate the DAT file size of a MapInfo table

Read more

How To Assign strings column values using table names stored in variables in MapBasic.

Read more

Problems opening TAB files in Google Earth

Read more

Error cannot find MapBasic application file when MapInfo Pro starts up

Read more

Configuring PDF Printer Paper Sizes in MapInfo Professional

Read more

How to populate a column with the starting and ending coordinates of a polyline in MapInfo Pro

Read more

Resolving problems with projection bounds for EPSG 25832 and 25833 in middle Europe when using MapInfo

Read more

How to use the Alias variable type in MapBasic

Read more

Resolve issue where the MapInfo Professional ObjectLen calculation varies when compared to length from data provider

Read more

How can I make my queries run faster in MapInfo Pro or MapBasic

Read more

Resolving issue in MapInfo Pro 17.0.1 where custom mbx fails to create legacy tab as it did in un-patched Pro 17.0

Read more

How to move the legacy tab into a floating map window in MapInfo Profesional 64-bit

Read more

Running an Integrated Mapping application from a user specified Windows folder using MapInfo Pro

Read more

Deleting records that are based on a join using MapBasic or within MapInfo Pro

Read more

MapInfo Professional Dataflow error

Read more

Toggling Legend Grid Lines using MapInfo Pro and MapBasic

Read more

Customizing the MapInfo Pro Ribbon Interface

Read more

Resolving MapBasic application returning Longitude/Latitude coordinates despite all tables being in British National Grid

Read more

How to update the style of a selection of lines/polylines automatically in MapInfo Pro

Read more

Using MapInfo MapBasic to find a Windows operating system Environment variable

Read more

How to lock the position of the frames and object in a Layout Designer Window using a MapBasic command

Read more

Finding integrated mapping examples in MapInfo Pro/MapBasic

Read more

What should I know about Coordinate Systems when working with MapBasic

Read more

Resolve error when loading a MapBasic application: «Unable to allocate memory. Unable to read application file.»

Read more

Resolve Overflow error when trying to return a value for SYS_INFO_APPIDISPATCH using MapBasic with MapInfo Pro 64-bit on Windows 10

Read more

Changing the default view of a Map window with the MapBasic window in MapInfo Professional

Read more

How to perform a MapBasic function that will return the name and path of the current workspace

Read more

How to resolve MapInfo Pro 32 bit error Unhandled Exception while running custom application

Read more

Silent Installation examples for MapInfo MapBasic

Read more

Using MapInfo Raster SDK and MapBasic functions to return the projection and EPSG code of a data grid

Read more

How To download MapBasic 12.5.1 from?

Read more

MapBasic compiler error: Cannot execute / MapInfow.exe file not found

Read more

How to find more information about MapInfo MapBasic v16 64-bit ribbon interface and commands

Read more

Converting a table of coordinates to a table of lines from the MapBasic window in MapInfo Professional

Read more

Integrated Mapping MapBasic applications fail with the error: «ActiveX can’t create object» on 64-bit versions

Read more

Resolve MapInfo Pro: INCLUDE file syntax wrong

Read more

Is there a way to set the Map Window ID number via MapBasic?

Read more

Configuring the ZM output values for Shape files with Universal Translator via Command-Line

Read more

Unable to run Check Regions on all objects in my table using MapInfo Pro

Read more

Developer Dojo: Porting your MapBasic applications to the Ribbon based interface

Read more

How to test if a value is of a numeric or character data type using Mapbasic

Read more

How to move points on a map with MapBasic

Read more

Installing different versions of MapInfo Pro and MapBasic on the same computer

Read more

How to setup and Echo a custom symbol truetype font in the MapBasic Window inside of MapInfo Pro

Read more

How to use the MapBasic switch command : -server to start MapBasic silently

Read more

How to determine the lengths of each side of a polygon in MapInfo Professional

Read more

How to use a variable as a table name in a MapInfo Pro query

Read more

Resolve Unable to create XML document handle. XML Library Load Error: Required XML Version Unavailable in MapInfo Pro

Read more

How to batch-update the position of points on a map using MapBasic

Read more

How to rotate an individual symbol in MapBasic

Read more

How to change the current workspace directory in MapBasic

Read more

Changing 32-bit MapBasic scripts to be compatible in 64-bit versions of MapBasic

Read more

Does MapBasic command PrintWin allows PDF as an output?

Read more

Locating the RibbonLib for MapBasic

Read more

Unable to print to PDF using MapBasic after upgrading from MapInfo Professional v12.5 to v15

Read more

Resolve issue around MapInfo z-axis, z-value support in Native or NativeX TAB format

Read more

Count values for a Thematic map not displaying consistent justification in MapInfo Pro Legend Designer

Read more

How to use animation in Mapbasic with code sample

Read more

Resolve the MapBasic error: «Invalid Dialog preserve command. There is no active dialog» 

Read more

How to access advanced features when executing Save Window statement via MapBasic

Read more

Resolve text buffer issues in the MapBasic Window in MapInfo Pro v15.2.1

Read more

URI path support in MapInfo Pro: Frequently Asked Questions

Read more

Resolve MapInfo / MapBasic runtime error when using ObjectInfo function

Read more

How to migrate a MapBasic 32 bit app that uses 32 bit Windows libraries to a MapInfo Pro 64 bit app

Read more

Resolve error «Invalid polygon number.Alter Object No when Alter Object Node Remove failed» when called in MapBasic application

Read more

Is it possible to create custom statements for MapBasic applications?

Read more

Resolve running a MapBasic program as windows scheduled task

Read more

Resolve issue in MapInfo Pro where Custom tooltips appear at the top of the button instead of at the bottom where the cursor lies

Read more

Is it possible for the ‘ProportionOverlap()’ function to work on Text objects in MapBasic?

Read more

Why does MapBasic 12.5.1 64-bit install by default to a PATH of C:Program Files (x86) and not the expected C:Program Files?

Read more

How to resize the preview panel in a Layout Designer Window using a MapBasic (.NET) command

Read more

Resolve the MapInfo Professional Query optimization bug — index file not closed — Bug

Read more

Resolve MapInfo or MapBasic locking folder when using FileOpenDlg

Read more

Resolve MapBasic function ObjectGeography() with OBJ_GEO_LINE_BEGX produces unexpected results for a polyline

Read more

How to set the page orientation in MapBasic® when Save Image As output not in correct orientation

Read more

How to locate Information regarding development documentation for 64-bit MapInfo Pro/MapBasic

Read more

How to create lines from pairs of x/y coordinates in MapInfo Pro

Read more

Using the new conditional IIf() MapBasic function in MapInfo Pro

Read more

Creating a polygon automatically from a table of points in MapInfo Professional

Read more

Creating a New Table and Create Points using the MapBasic Window

Read more

Running SQL Select queries using wildcards in MapInfo Pro

Read more

«ODBC Error: [Infomix OBDC Driver] Inexact character conversion during translation. Unable to refresh linked table.» message from MapBasic Server Refresh Command

Read more

How to load a MapBasic tool for all users in MapInfo Professional

Read more

How to compile a .MBX file instead of a .MBO file in MapBasic

Read more

MapInfo Pro color code table (picklist)

Read more

How to insert objects and data from a query of one table into another table using MapBasic

Read more

Uninstall error: This operation requires elevated privileges. Restart by inserting the product DVD/CD into the media player and double-clicking the setup.exe file. This setup will now abort — MapInfo Pro

Read more

Finding the SUM of time columns in MapInfo Pro

Read more

How to create a new column with a sequential index — MapInfo Pro

Read more

Scripting Samurai: Getting Started with the MapBasic window

Read more

Using the MOD operator and integer division in MapInfo Professional

Read more

Resolving «MapInfo Pro could not convert data. Unable to update table» error message

Read more

Clarification of «Order Clause» in «Set Legend» and «Create Designer Legend» in MapBasic

Read more

How to take advantage of the new MapBasic Exec() function in MapInfo Pro

Read more

How to enter values for Date/Time data types in a browser or Table>update column within MapInfo Pro

Read more

How to find the MapInfo Standard Tools code sample in MapBasic

Read more

How to create polylines from a series of points using MapBasic?

Read more

How to calculate the DAT file size of a MapInfo table

Read more

How To Assign strings column values using table names stored in variables in MapBasic.

Read more

Problems opening TAB files in Google Earth

Read more

Error cannot find MapBasic application file when MapInfo Pro starts up

Read more

Configuring PDF Printer Paper Sizes in MapInfo Professional

Read more

How to populate a column with the starting and ending coordinates of a polyline in MapInfo Pro

Read more

Resolving problems with projection bounds for EPSG 25832 and 25833 in middle Europe when using MapInfo

Read more

How to use the Alias variable type in MapBasic

Read more

Resolve issue where the MapInfo Professional ObjectLen calculation varies when compared to length from data provider

Read more

How can I make my queries run faster in MapInfo Pro or MapBasic

Read more

Resolving issue in MapInfo Pro 17.0.1 where custom mbx fails to create legacy tab as it did in un-patched Pro 17.0

Read more

How to move the legacy tab into a floating map window in MapInfo Profesional 64-bit

Read more

Running an Integrated Mapping application from a user specified Windows folder using MapInfo Pro

Read more

Deleting records that are based on a join using MapBasic or within MapInfo Pro

Read more

MapInfo Professional Dataflow error

Read more

Toggling Legend Grid Lines using MapInfo Pro and MapBasic

Read more

Customizing the MapInfo Pro Ribbon Interface

Read more

Resolving MapBasic application returning Longitude/Latitude coordinates despite all tables being in British National Grid

Read more

How to update the style of a selection of lines/polylines automatically in MapInfo Pro

Read more

Using MapInfo MapBasic to find a Windows operating system Environment variable

Read more

How to lock the position of the frames and object in a Layout Designer Window using a MapBasic command

Read more

Finding integrated mapping examples in MapInfo Pro/MapBasic

Read more

What should I know about Coordinate Systems when working with MapBasic

Read more

Resolve error when loading a MapBasic application: «Unable to allocate memory. Unable to read application file.»

Read more

Resolve Overflow error when trying to return a value for SYS_INFO_APPIDISPATCH using MapBasic with MapInfo Pro 64-bit on Windows 10

Read more

Changing the default view of a Map window with the MapBasic window in MapInfo Professional

Read more

How to perform a MapBasic function that will return the name and path of the current workspace

Read more

How to resolve MapInfo Pro 32 bit error Unhandled Exception while running custom application

Read more

Silent Installation examples for MapInfo MapBasic

Read more

Using MapInfo Raster SDK and MapBasic functions to return the projection and EPSG code of a data grid

Read more

How To download MapBasic 12.5.1 from?

Read more

MapBasic compiler error: Cannot execute / MapInfow.exe file not found

Read more

How to find more information about MapInfo MapBasic v16 64-bit ribbon interface and commands

Read more

Converting a table of coordinates to a table of lines from the MapBasic window in MapInfo Professional

Read more

Integrated Mapping MapBasic applications fail with the error: «ActiveX can’t create object» on 64-bit versions

Read more

Resolve MapInfo Pro: INCLUDE file syntax wrong

Read more

Is there a way to set the Map Window ID number via MapBasic?

Read more

Configuring the ZM output values for Shape files with Universal Translator via Command-Line

Read more

Unable to run Check Regions on all objects in my table using MapInfo Pro

Read more

Developer Dojo: Porting your MapBasic applications to the Ribbon based interface

Read more

How to test if a value is of a numeric or character data type using Mapbasic

Read more

How to move points on a map with MapBasic

Read more

Installing different versions of MapInfo Pro and MapBasic on the same computer

Read more

How to setup and Echo a custom symbol truetype font in the MapBasic Window inside of MapInfo Pro

Read more

How to use the MapBasic switch command : -server to start MapBasic silently

Read more

How to determine the lengths of each side of a polygon in MapInfo Professional

Read more

How to use a variable as a table name in a MapInfo Pro query

Read more

Resolve Unable to create XML document handle. XML Library Load Error: Required XML Version Unavailable in MapInfo Pro

Read more

How to batch-update the position of points on a map using MapBasic

Read more

How to rotate an individual symbol in MapBasic

Read more

How to change the current workspace directory in MapBasic

Read more

Changing 32-bit MapBasic scripts to be compatible in 64-bit versions of MapBasic

Read more

Does MapBasic command PrintWin allows PDF as an output?

Read more

Locating the RibbonLib for MapBasic

Read more

Unable to print to PDF using MapBasic after upgrading from MapInfo Professional v12.5 to v15

Read more

Resolve issue around MapInfo z-axis, z-value support in Native or NativeX TAB format

Read more

Count values for a Thematic map not displaying consistent justification in MapInfo Pro Legend Designer

Read more

How to use animation in Mapbasic with code sample

Read more

Resolve the MapBasic error: «Invalid Dialog preserve command. There is no active dialog» 

Read more

How to access advanced features when executing Save Window statement via MapBasic

Read more

Resolve text buffer issues in the MapBasic Window in MapInfo Pro v15.2.1

Read more

URI path support in MapInfo Pro: Frequently Asked Questions

Read more

Resolve MapInfo / MapBasic runtime error when using ObjectInfo function

Read more

How to migrate a MapBasic 32 bit app that uses 32 bit Windows libraries to a MapInfo Pro 64 bit app

Read more

Resolve error «Invalid polygon number.Alter Object No when Alter Object Node Remove failed» when called in MapBasic application

Read more

Is it possible to create custom statements for MapBasic applications?

Read more

Resolve running a MapBasic program as windows scheduled task

Read more

Resolve issue in MapInfo Pro where Custom tooltips appear at the top of the button instead of at the bottom where the cursor lies

Read more

Is it possible for the ‘ProportionOverlap()’ function to work on Text objects in MapBasic?

Read more

Why does MapBasic 12.5.1 64-bit install by default to a PATH of C:Program Files (x86) and not the expected C:Program Files?

Read more

How to resize the preview panel in a Layout Designer Window using a MapBasic (.NET) command

Read more

Resolve the MapInfo Professional Query optimization bug — index file not closed — Bug

Read more

Resolve MapInfo or MapBasic locking folder when using FileOpenDlg

Read more

Resolve MapBasic function ObjectGeography() with OBJ_GEO_LINE_BEGX produces unexpected results for a polyline

Read more

How to set the page orientation in MapBasic® when Save Image As output not in correct orientation

Read more

How to locate Information regarding development documentation for 64-bit MapInfo Pro/MapBasic

Read more

How to create lines from pairs of x/y coordinates in MapInfo Pro

Read more

Using the new conditional IIf() MapBasic function in MapInfo Pro

Read more

Creating a polygon automatically from a table of points in MapInfo Professional

Read more

Creating a New Table and Create Points using the MapBasic Window

Read more

Running SQL Select queries using wildcards in MapInfo Pro

Read more

«ODBC Error: [Infomix OBDC Driver] Inexact character conversion during translation. Unable to refresh linked table.» message from MapBasic Server Refresh Command

Read more

How to load a MapBasic tool for all users in MapInfo Professional

Read more

How to compile a .MBX file instead of a .MBO file in MapBasic

Read more

MapInfo Pro color code table (picklist)

Read more

How to insert objects and data from a query of one table into another table using MapBasic

Read more

Uninstall error: This operation requires elevated privileges. Restart by inserting the product DVD/CD into the media player and double-clicking the setup.exe file. This setup will now abort — MapInfo Pro

Read more

Finding the SUM of time columns in MapInfo Pro

Read more

How to create a new column with a sequential index — MapInfo Pro

Read more

Scripting Samurai: Getting Started with the MapBasic window

Read more

Using the MOD operator and integer division in MapInfo Professional

Read more

Resolving «MapInfo Pro could not convert data. Unable to update table» error message

Read more

Clarification of «Order Clause» in «Set Legend» and «Create Designer Legend» in MapBasic

Read more

How to take advantage of the new MapBasic Exec() function in MapInfo Pro

Read more

How to enter values for Date/Time data types in a browser or Table>update column within MapInfo Pro

Read more

How to find the MapInfo Standard Tools code sample in MapBasic

Read more

How to create polylines from a series of points using MapBasic?

Read more

How to calculate the DAT file size of a MapInfo table

Read more

How To Assign strings column values using table names stored in variables in MapBasic.

Read more

Problems opening TAB files in Google Earth

Read more

Error cannot find MapBasic application file when MapInfo Pro starts up

Read more

Configuring PDF Printer Paper Sizes in MapInfo Professional

Read more

How to populate a column with the starting and ending coordinates of a polyline in MapInfo Pro

Read more

Resolving problems with projection bounds for EPSG 25832 and 25833 in middle Europe when using MapInfo

Read more

How to use the Alias variable type in MapBasic

Read more

Resolve issue where the MapInfo Professional ObjectLen calculation varies when compared to length from data provider

Read more

How can I make my queries run faster in MapInfo Pro or MapBasic

Read more

Resolving issue in MapInfo Pro 17.0.1 where custom mbx fails to create legacy tab as it did in un-patched Pro 17.0

Read more

How to move the legacy tab into a floating map window in MapInfo Profesional 64-bit

Read more

Running an Integrated Mapping application from a user specified Windows folder using MapInfo Pro

Read more

Deleting records that are based on a join using MapBasic or within MapInfo Pro

Read more

MapInfo Professional Dataflow error

Read more

Toggling Legend Grid Lines using MapInfo Pro and MapBasic

Read more

Customizing the MapInfo Pro Ribbon Interface

Read more

Resolving MapBasic application returning Longitude/Latitude coordinates despite all tables being in British National Grid

Read more

How to update the style of a selection of lines/polylines automatically in MapInfo Pro

Read more

Using MapInfo MapBasic to find a Windows operating system Environment variable

Read more

How to lock the position of the frames and object in a Layout Designer Window using a MapBasic command

Read more

Finding integrated mapping examples in MapInfo Pro/MapBasic

Read more

What should I know about Coordinate Systems when working with MapBasic

Read more

Resolve error when loading a MapBasic application: «Unable to allocate memory. Unable to read application file.»

Read more

Resolve Overflow error when trying to return a value for SYS_INFO_APPIDISPATCH using MapBasic with MapInfo Pro 64-bit on Windows 10

Read more

Changing the default view of a Map window with the MapBasic window in MapInfo Professional

Read more

How to perform a MapBasic function that will return the name and path of the current workspace

Read more

How to resolve MapInfo Pro 32 bit error Unhandled Exception while running custom application

Read more

Silent Installation examples for MapInfo MapBasic

Read more

Using MapInfo Raster SDK and MapBasic functions to return the projection and EPSG code of a data grid

Read more

How To download MapBasic 12.5.1 from?

Read more

MapBasic compiler error: Cannot execute / MapInfow.exe file not found

Read more

How to find more information about MapInfo MapBasic v16 64-bit ribbon interface and commands

Read more

Converting a table of coordinates to a table of lines from the MapBasic window in MapInfo Professional

Read more

Integrated Mapping MapBasic applications fail with the error: «ActiveX can’t create object» on 64-bit versions

Read more

Resolve MapInfo Pro: INCLUDE file syntax wrong

Read more

Is there a way to set the Map Window ID number via MapBasic?

Read more

Configuring the ZM output values for Shape files with Universal Translator via Command-Line

Read more

Unable to run Check Regions on all objects in my table using MapInfo Pro

Read more

Developer Dojo: Porting your MapBasic applications to the Ribbon based interface

Read more

How to test if a value is of a numeric or character data type using Mapbasic

Read more

How to move points on a map with MapBasic

Read more

Installing different versions of MapInfo Pro and MapBasic on the same computer

Read more

How to setup and Echo a custom symbol truetype font in the MapBasic Window inside of MapInfo Pro

Read more

How to use the MapBasic switch command : -server to start MapBasic silently

Read more

How to determine the lengths of each side of a polygon in MapInfo Professional

Read more

How to use a variable as a table name in a MapInfo Pro query

Read more

Resolve Unable to create XML document handle. XML Library Load Error: Required XML Version Unavailable in MapInfo Pro

Read more

How to batch-update the position of points on a map using MapBasic

Read more

How to rotate an individual symbol in MapBasic

Read more

How to change the current workspace directory in MapBasic

Read more

Changing 32-bit MapBasic scripts to be compatible in 64-bit versions of MapBasic

Read more

Does MapBasic command PrintWin allows PDF as an output?

Read more

Locating the RibbonLib for MapBasic

Read more

Unable to print to PDF using MapBasic after upgrading from MapInfo Professional v12.5 to v15

Read more

Resolve issue around MapInfo z-axis, z-value support in Native or NativeX TAB format

Read more

Count values for a Thematic map not displaying consistent justification in MapInfo Pro Legend Designer

Read more

How to use animation in Mapbasic with code sample

Read more

Resolve the MapBasic error: «Invalid Dialog preserve command. There is no active dialog» 

Read more

How to access advanced features when executing Save Window statement via MapBasic

Read more

Resolve text buffer issues in the MapBasic Window in MapInfo Pro v15.2.1

Read more

URI path support in MapInfo Pro: Frequently Asked Questions

Read more

Resolve MapInfo / MapBasic runtime error when using ObjectInfo function

Read more

How to migrate a MapBasic 32 bit app that uses 32 bit Windows libraries to a MapInfo Pro 64 bit app

Read more

Resolve error «Invalid polygon number.Alter Object No when Alter Object Node Remove failed» when called in MapBasic application

Read more

Is it possible to create custom statements for MapBasic applications?

Read more

Resolve running a MapBasic program as windows scheduled task

Read more

Resolve issue in MapInfo Pro where Custom tooltips appear at the top of the button instead of at the bottom where the cursor lies

Read more

Is it possible for the ‘ProportionOverlap()’ function to work on Text objects in MapBasic?

Read more

Why does MapBasic 12.5.1 64-bit install by default to a PATH of C:Program Files (x86) and not the expected C:Program Files?

Read more

How to resize the preview panel in a Layout Designer Window using a MapBasic (.NET) command

Read more

Resolve the MapInfo Professional Query optimization bug — index file not closed — Bug

Read more

Resolve MapInfo or MapBasic locking folder when using FileOpenDlg

Read more

Resolve MapBasic function ObjectGeography() with OBJ_GEO_LINE_BEGX produces unexpected results for a polyline

Read more

How to set the page orientation in MapBasic® when Save Image As output not in correct orientation

Read more

How to locate Information regarding development documentation for 64-bit MapInfo Pro/MapBasic

Read more

Additional Resources

Ideas

Submit your innovative ideas around Software & Data Solutions existing and future software & data offerings

Online Forums

Connect with other users and discuss topics around your Software & Data Solution

Precisely U

Flexible programs for end users and partners using Precisely solutions.

Find Support by Product

Find your product to access Product Documentation & Knowledge articles

Blogs

Review the latest industry trends and best practices to help you integrate, verify, locate, and enrich your data

Precisely Data Experience

Precisely is the global leader in data integrity. No single data provider possesses the combined experience, ability and product catalog of Precisely

Precisely APIs

Enrich your data, and enhance your applications, business processes and workflows with dozens of powerful location & identity APIs

MapInfo Marketplace

Find new tools and utilities that will make MapInfo Pro better than ever!

Product Downloads

Our Download area contains an extensive portfolio of product evaluations, upgrades and updates, utilities and more

Software Maintenance Handbook

The Software Maintenance Handbook offers detailed information on the many support options available to you

Winshuttle Support

Find your product support information for Winshuttle products

F.A.Q.

Want more help?

Contact Support

Find global contact information by region

Copyright ©2023 Precisely. All rights reserved worldwide.

OIIOIOIO

MapInfo Professional 7.5 Руководство пользователя (Полное)Глава 15: Специальные разделы о работе с MapInfo Pro-

Эта глава поможет опытным пользователям MapInfo усовершенствовать свою работу с программой, применяя функции языка MapBasic. MapBasic это язык программирования для MapInfo, позволяющий настраивать и автоматизировать функции MapInfo. Когда создавался MapBasic, то к сеансу работы MapInfo было добавлено окно MapBasic, в котором можно тестировать и налаживать программный код. Информация из окна MapBasic также полезна тем, что помогает разобраться в сложных запросах MapInfo.

Окно MapBasic имеет ограничение по набору команд MapBasic. Окно MapBasic воспринимает команды построчно, нет возможности использовать циклы, связи с другими приложениями и более сложными командами.

Справочник MapBasic в виде PDF файла находится на диске MapInfo Professional. В этом справочнике находится много полезной информации об операторах, которые рассматриваются в этой главе. Можете посмотреть список дефиниций MapBasic (MAPBASIC.DEF) в Приложении C Руководства пользователя MapBasic.

Доступ к окну MapBasic

Для получения доступа к окну MapBasic выполните команду НАСТРОЙКИ > ПОКАЗАТЬ ОКНО MAPBASIC. Окно MapBasic отобразится у Вас на экране. В этом окне Вы можете вводить команды MapBasic или видеть коды MapBasic, генерируемые MapInfo. Например, посмотрим, какие коды MapBasic создает MapInfo вовремя открытия таблицы и выполнения запроса. Выполните команду НАСТРОЙКИ > ПОКАЗАТЬ ОКНО MAPBASIC и откройте таблицу «World». Выполните следующий запрос: “выбрать все, где Pop_1994 > 1000000, и показать результат запроса. Когда запрос будет выполнен, в окне MapBasic Вы увидите следующее :

Open Table ”C:MAPINFODATAWORLDWorld.tab” Interactive Map From World

select * from World where Pop_1994 > 1000000 into Selection browse * from Selection

Первая строка — открытие таблицы с именем «World». Вторая строка создается автоматически и обозначает отображение таблицы «World» в виде карты. Третья строка отображает выполняемый Вами запрос. В четвертой строке — требование показать результат запроса в виде списка.

Вы можете вводить команды MapBasic в специальном окне MapBasic. Наберите в окне MapBasic следующую команду:

Map from Selection

Нажмите ENTER в конце строки, и команда выполнится. Все выбранные объекты отобразятся в окне Карты.

Основная цель создания окна MapBasic – помощь разработчикам приложений на языке MapBаsic. В окне MapBasic Вы можете использовать следующие операторы и функции, такие как Buffer( ) и др.

MapInfo Professional 7.5

© May 2004 MapInfo Corporation. All rights reserved.

519

MI_UG.PDF

MapInfo Professional 7.5 Руководство пользователя (Полное)Глава 15: Специальные разделы о работе с MapInfo Pro-

Справочник MapBasic в формате PDF находится на диске MapInfo Professional. В нем подробно описан синтаксис функций и операторов, что облегчает процесс программирования.

Примеры программ MapBasic

В этом разделе рассматриваются примеры программ MapBasic, которые улучшают Ваши карты.

Преобразование таблицы координат в таблицу линий

Для создания линий в каждой записи таблицы может быть использована следующая последовательность действий. В таблице должны существовать колонки, содержащие описание линии, т.е. описывающие координату начальной (Start_X, Start_Y) и конечной (End_X, End_Y) точек линии. Если графические объекты для данной таблицы существуют, то они должны быть удалены.

1.Выполните команду НАСТРОЙКИ > ПОКАЗАТЬ ОКНО MAPBASIC. Окно MapBasic появится на экране.

2.Наберите следующую команду в окне:

update point_table set obj=createline(Start_X, Start_Y,End_X,End_Y)

Point_table является копией Вашей исходной таблицы, Start_X — колонка, содержащая долготу начальной точки, Start_Y — колонка, содержащая широту начальной точки, End_X — колонка, содержащая долготу конечной точки линии, End_Y — колонка, содержащая широту конечной точки линии.

На основе информации, содержащейся в данной строке, для каждой строки таблицы будут созданы линейные объекты. Вы не будете видеть изменений в таблице, пока не обновите окно Карты или не откроете новое окно Карты для данной таблицы.

Возможные проблемы

Перед выполнением процедур, описанных выше, убедитесь, что Ваша таблица имеет возможность хранить географические объекты. Для того, чтобы это проверить или сделать возможным хранение географических объектов, выполните ТАБЛИЦА > ИЗМЕНИТЬ > ПЕРЕСТРОИТЬ и проверьте, что данная таблица позволяет присоединять географические объекты.

Если Ваша карта имеет географическую проекцию, то объекты могут быть и не созданы.Подробнее о том, как установить нужную проекцию, читайте в Справочнике MapBasic раздел, посвященный оператору Set Coordsys.

Создание окружностей вокруг точек используя окно MapBasic

Функция СreateCircle может быть использована для преобразования таблицы точек в таблицу окружностей. Ее действие похоже на создание буферных зон на слое точек. Отличие от создания буферов состоит в том, что в данном случае точечные объекты преобразуются в окружности. Предполагается, что все изменения делаются с копией таблицы. Если в окне карты существуют какие-либо другие объекты, то они будут потеряны.

1. Выполните НАСТРОЙКИ > ПОКАЗАТЬ ОКНО MAPBASIC.

MapInfo Professional 7.5

© May 2004 MapInfo Corporation. All rights reserved.

520

MI_UG.PDF

MapInfo Professional 7.5 Руководство пользователя (Полное)Глава 15: Специальные разделы о работе с MapInfo Pro-

2. Наберите следующую команду в окне:

update tablename set obj=createcircle(centroidx(obj),centroidy(obj),radius)

Tablename — имя таблицы, в которую Вы сделали копию Вашей таблицы, Radius — радиус окружности в текущей координатной системе.

Таблица автоматически будет изменена.

Возможные проблемы

Данная команда видоизменяет столбец «obj» в Вашей таблицы. Команда заменяет объекты типа «точка» на объекты типа «окружность». Если Вы хотите отметить операцию, выполните,

ПРАВКА > ОТМЕНИТЬ.

Последний параметр (Radius) в данной команде представляет собой некоторое число — это радиус создаваемой окружности. Если, выполнив команду, Вы посчитаете, что радиус был слишком маленький или наоборот слишком большой, выполните ФАЙЛ > ВОССТАНОВИТЬ.

Таблица восстановится на момент последнего сохранения. Выполните команду снова с другим радиусом.

Если Ваша карта имеет географическую проекцию, то объекты могут быть не созданы.

Для того чтобы преобразовать таблицу окружностей обратно в таблицу точек выполните следующую команду MapBasic:

Update tablename set obj=createpoint(centroidx(obj),centroidy(obj))

Использование функции ObjectInfo для описания типа графического объекта

Функция ОbjectInfo используется для получения типа графического объекта, содержащегося в каждой строке таблицы. Каждый тип обозначается целым числом (small integer). MapInfo включает10 типов объектов. Все типы объектов приведены в описании функции ObjectInfo.

Для того, что определить типы объектов, содержащихся в одном слое, выполним следующее:

1.Выполните команду НАСТРОЙКИ > ПОКАЗАТЬ ОКНО MAPBASIC. Окно MapBasic появится на экране.

2.Введите следующую команду SQL-запроса:

Select ObjectInfo (obj,1) from tablename

Obj — ссылка на графические объекты, соответствующие строке таблицы, 1 — код, определяющий, что вернуть требуется тип объекта, Tablename — имя Вашей таблицы.

3.Выполните команду ОКНО > НОВЫЙ СПИСОК. Выберите из списка таблицу с именем «Selection». В списке будут содержатся числовые коды для каждого типа объектов Вашей таблицы.

Выбор всех записей с заданным типом объектов

1.Выполните команду СВОЙСТВА > ПОКАЗАТЬ ОКНО MAPBASIC.

2.Наберите следующий SQL-запрос:

Select * from tablename where str$(obj)=”objecttype

MapInfo Professional 7.5

© May 2004 MapInfo Corporation. All rights reserved.

521

MI_UG.PDF

MapInfo Professional 7.5 Руководство пользователя (Полное)Глава 15: Специальные разделы о работе с MapInfo Pro-

Tablename — имя Вашей таблицы, Objecttype — тип объекта, который Вам требуется выбрать. Для определения типа объекта дважды щелкните мышью на требуемый объект. В диалоге будет показан тип объекта.

3.Полученный результат можно просмотреть в окне Списка или Карты.

Типы объектов, которые Вы можете выбрать: полигон, дуга, линия, эллипс, прямоугольник, символ, полилиния.

Выбор улицы по цвету с использованием SQL-запроса

Для того, чтобы выбрать все улицы из таблицы StreetInfo или Streetworks с отрезками линий, имеющих определенную ширину, тип и цвет, сделайте следующее:

1.После того, как файл с улицами был открыт, выполните команду НАСТРОЙКИ > ПОКАЗАТЬ ОКНО MAPBASIC. Окно MapBasic появится на экране.

2.Для выбора линий красного цвета наберите следующую команду:

Str$(ObjectInfo(obj,2))=”Pen(2,2,16711680)”

Нахождение угла

В данном процедуре мы определяемугол, обозначаемый на рисунке буквой «А», образуемый отрезком, соединяющим две точки, и горизонтальным лучом, выходящим из первой точки. Для эьтого построим прямоугольный треугольник, у которого гипотенузой является отрезок между двумя заданными точками, а основанием — отрезок, соединяющий первую точку с перпендикуляром, опущенным из нее на горизонтальный луч. После того, как найдем длину гипотенузы, соответствующую расстоянию между двумя точками, можно найти и сам угол.

Данные точки будем называть начальной и конечной. Начальная точка находится на горизонтальной линии. В рассматриваемом примере начальной точкой является город Hartford, а конечной — Boston. Таким образом искомая гипотенуза — это расстояние от Hartford

до Boston.

.

1. Выполните НАСТРОЙКИ > ПОКАЗАТЬ ОКНО MAPBASIC и откройте окно MapBasic.

MapInfo Professional 7.5

© May 2004 MapInfo Corporation. All rights reserved.

522

MI_UG.PDF

MapInfo Professional 7.5 Руководство пользователя (Полное)Глава 15: Специальные разделы о работе с MapInfo Pro-

2.Дважды нажмите на начальную точку (Hartford). MapInfo откроет окно «Точечный объект», в котором будет показана информация о координатах объекта (X, Y). Запишите их — эти значения мы будем использовать в качестве OriginX и OriginY.

3.Дважды нажмите на конечную точку (Boston). MapInfo откроет диалог «Точечный объект», в котором будет показано положение конечной точки (X, Y). Эти значения будут подставлены вместо DestX и DestY.

4.В окне MapBasic наберем следующую команду:

Print Distance(OriginX, OriginY, DestX, DestY, ”mi”)

Подставим значения, полученные в пунктах 2 и 3, вместо OriginX, OriginY, DestX и DestY. MapInfo рассчитает расстояние между начальной и конечной точками и поместит это значение в окно Сообщений. Это и будет гипотенуза треугольника.

5. Теперь в окне MapBasic наберите следующую команду:

Print Distance(OriginX, OriginY, DestX, OriginY, ”mi”)

Подставьте значения, полученные в пунктах 2 и 3, вместо OriginX, OriginY, DestX и DestY. MapInfo вычислит длину основания треугольника.

6. Наконец, чтобы найти угол, наберите следующую команду MapBasic:

Print(ACOS(Adjacent/Hypotenuse)*57.2958)

Здесь вместо «adjacent» и «hypotenuse» мы подставим значения, полученные на этапах 4 и 5. MapInfo вернет значение угла А в градусах, и это значение будет напечатано в окне Сообщений.

Если Вам нужно значение угла в радианах, то удалите из строки последнее действие умножения, т.е. введите следующую команду:

Print(ACOS(Adjacent/Hypotenuse))

В случае, если заданы не две точки, а отрезок с известными начальной и конечной точками, для нахождения угла к горизонтали требуется внести соответствующие изменения в пункты 2 и 3:

Дважды нажмите на линейный объект — MapInfo откроет окно «Линия», в котором отобразит информацию о координатах (X, Y) начальной и конечной точек.

В качестве координат конечной точки при нахождении угла будем использовать точку с более низкой широтой.

Продолжим, начиная с шага 4.

Поиск плавающих окон

Плавающие окна — это специальные окна MapInfo, которые располагаются поверх окон Карт, Списков, Графиков и Отчетов. Это окно Информации, Пенала, Линейки и окно Сообщений. Вы можете сдвинуть эти окна за пределы экрана, и соответственно они будут не видны.

Используя окно MapBasic, Вы можете легко вернуть эти окна в центр экрана. В качестве примера используем окно Информации. Список других плавающих окон приведен в описании команды Set Window в данной главе.

1.Выберите НАСТРОЙКИ > ПОКАЗАТЬ ОКНО MAPBASIC. Окно MapBasic появится на Вашем экране.

2.Наберите следующую команду в окне:

Set Window Info Position (1.5,2.0) Units ”in”

Окно Информации переместится в центр экрана.

MapInfo Professional 7.5

© May 2004 MapInfo Corporation. All rights reserved.

523

MI_UG.PDF

MapInfo Professional 7.5 Руководство пользователя (Полное)Глава 15: Специальные разделы о работе с MapInfo Pro-

Установка стандартного масштаба карты

Когда Вы открываете карту в MapInfo, она отображается в масштабе, выставленном по умолчанию, даже если Вы в последнем сеансе работы меняли масштаб. Вы можете поменять стандартный масштаб карты, используя оператор Set Map.

Например, если Вы открываете карту мира «World», которая входит в комплект поставки MapInfo, она отобразится в таком масштабе, что будет видна целиком. Можно увеличить изображение так, что будет показана только Европа. Для изменения стандартного масштаба, сделайте следующее:

1.Выполните команду НАСТРОЙКИ > ПОКАЗАТЬ ОКНО MAPBASIC. На экране появится окно MapBasic.

2.Откройте карту мира.

3.Установите такой масштаб и положение центра карты, чтобы в окне была только Европа.

4.В окне MapBasic введите следующую команду:

Set Map Layer 1 Default Zoom

5.Закройте таблицу «World».

6.Снова откройте таблицу «World». Она откроется в новом масштабе.

Параметры отображения

Особенности дорог

Описание объектов

Параметры графического

объекта Pen (ширина, тип

заливки, цвет)

Главные автомагистрали

Тонкая красная линия

Pen (2,2,16711680)

Все другие дороги

Тонкая черная линия

Pen (1,2,0)

Железные дороги

Тонкая черная

Pen (1,26,0)

железнодорожная линия

Толщина линии обозначается целым числом от 1 до 7. В выпадающем списке Пиксел раздела Толщина в диалоге «Стиль линии» Вы можете увидеть, что 1 соответствует самой тонкой линии, а 7 — самой толстой.

В этом же диалоге в разделе Стиль показаны 77 типов линий.

MapInfo Professional 7.5

© May 2004 MapInfo Corporation. All rights reserved.

524

MI_UG.PDF

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]

  • #
  • #
  • #
  • #
  • #
  • #
  • #
  • #
  • #
  • #
  • #

Sorry for digging out an old thread, but the MapBasic UserGuide and MapBasic Reference are probably the 2 best resources for getting started with MapBasic.

I myself started off simply observing code generation in the MapBasic Window (see what Peter suggested). Then I started making my own MapBasic Window scripts in Excel:

Excel Script Example

Then after a while I found out that MapBasic can be compiled into .MBX tools and these have the benefit of being able to use Loops, Flow control, dialogues etc.

So then I started writing .mb files and compiling them to .MBX. After a little while longer I started wanting to make MapBasic applications with Ribbon Buttons. You can do this with the Alter ButtonPad statement but it is better to use the RIBBONLib created by Peter. To do so you need to get started with .MBPs — I found this difficult but got their in the end.

As you can see from my own experience, I’ve learnt more as and when I wanted it and have always strove to develop my knowledge. This has involved lots of googling, lots of reading in the MapBasic reference/userguide, lots of talking to PBSupport and lots of reading from (and asking questions on) MapInfo-L google group.

Понравилась статья? Поделить с друзьями:

А вот и еще наши интересные статьи:

  • Руководство изданием чего либо называется
  • Как получить должностную инструкцию от работодателя
  • Санаторий чайка руководство санатория
  • Тербинафин таблетки инструкция по применению цена мазь
  • Эпин для растений инструкция по применению для комнатных орхидей

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии