MapBasic is a programming language for creation of additional tools and functionality for the MapInfo geographical information system.

learn more… | top users | synonyms

0
votes
1answer
578 views

How to close all layers in Mapinfo?

I want to close all layers in Mapinfo except one and again add one layer. How to do so in Mapinfo using Mapbasic or without?
1
vote
1answer
481 views

How to hide coordinates points in mapinfo?

I have created labels ,legends scale and North-direction pointer but I now need to conditionally hide or show the points using button in mapbasic program but I don't know the syntax. Where can I ...
0
votes
0answers
144 views

Is there any way to fix the position of fixed buttonpads in the top toolbar in MapBasic?

Here is my code to create some buttons : Include "icons.def" Declare Sub Main Declare Sub button_prompt Sub Main Create ButtonPad "Providers" As PushButton Icon MI_ICON_ZOOM_QUESTION Calling ...
2
votes
1answer
740 views

How to add custom Icon to buttons on buttonpads in mapinfo?

I have made buttons with icons availabe in mapinfo but now i want to add custom icon. Is it possible my code is as follows: Include "icons.def" Declare Sub Main Declare Sub button_prompt Sub ...
2
votes
1answer
2k views

Creating MBO files with MapBasic and Notepad++

[Note: I have been using Notepad++ (with some customisations as per this page), rather than MapBasic itself. This may make things a bit trickier, but so far the time saved in development has been ...
1
vote
2answers
2k views

What are the best ways to connect two coordinates on mapinfo?

I have with the help of this forum drawn a coordinate system with longitude and latitude at different location. I am trying to connect these sites what is the best way to connect. Is it just drawing ...
0
votes
1answer
7k views

How to plot geographical coordinates in mapinfo?

I want to get started with mapinfo and plot some coordinates i.e latitude and longitute . How is it possibe?
1
vote
1answer
1k views

Finding text object variable names in MapInfo/MapBasic

In MapBasic you can create a text object in a layout window by using the "Create text" statement. You can also use the same statement to update this object. I am working on a tool that creates ...
5
votes
3answers
6k views

Getting Started with MapBasic?

I am new to MapBasic. I googled for tutorials and found various PDFs but could not get started with the resources. I would be glad if anyone could provide some path for learning MapBasic.
4
votes
1answer
352 views

Copy text to clipboard with MapBasic

I think the title says it all - is it possible to programmatically copy/paste some text to/from the windows clipboard using MapBasic? I have found this discussion but it only discusses copying and as ...
0
votes
3answers
2k views

Copying objects to existing records in MapInfo

This should be fairly simple but I think I'm missing something... I have two tables of similar structure with corresponding data in them (i.e. same number of rows, rows have the same IDs). The main ...
3
votes
3answers
1k views

Definitions and limitations of MapInfo TAB file objects

I am working on a MapInfo plugin to convert MapInfo files to GeoJSON files. I am having trouble matching up the object types of the two formats. Each GeoJSON object type is described in the ...
6
votes
2answers
2k views

Converting MapInfo TAB to GeoJSON

Is there an easy way to convert MapInfo TAB files into GeoJSON? I am working on a web-based mapping system which will use GeoJSON to transfer data. I also use MapInfo and would like to be able to ...
3
votes
3answers
2k views

Create closest-distance line in MapInfo

As part of a larger program (basically a remake and extension of DistanceCalc) I want to programmatically create a line between the two closest points of two regions in MapInfo. The ObjectDistance ...
0
votes
1answer
1k views

Finding the type of object in MapBasic (MapInfo)

I am trying to write a MapBasic function to check whether or not an object can be used with the Overlap/AreaOverlap functions - I need to tell whether it's a closed shape or a line/arc/point/text ...