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
2answers
67 views

mapbasic, create polygon, insert node

Hi I try to create a parsel table from coordinates. My scripts are below. Why it does not show the results on the map? Thank you in advance! Create Table "parsel" (Parsel_Adi Char(10)) file ...
0
votes
2answers
190 views

Updating a column with line direction in MapInfo

I was wondering if there is a way to update a column in MapInfo with the digitised line direction. I have two TAB files, one is complete lines and the other is sections of the same lines (both have a ...
1
vote
1answer
22 views

Adding nodes to a line by interval in MapInfo

I am a MapBasic beginner, and I just want a simple .mbx or tool that can add nodes to a line by interval (say every 50m). I don't really need it to have a start point or end point (or maybe it is ...
1
vote
1answer
109 views

Handler tool in MapBasic

Have any handler or procedure, that call automatic when the click or unclick menu item or button? Similiar SelChangedHandler.
1
vote
1answer
82 views

How to make a shortest path code in mapbasic?

I have a column table that consist of 2 points (from / to), i wanted to have a dialog box that will show all possible path from source to destination from a list box and show the shortest path with ...
1
vote
1answer
52 views

Request to run mapbasic 10.5 code in mapbasic 9.1 version

I have created mapbasic codes using 10.5 version. Now I have to run in a lower version (9.1) Please anyone help me how to do this.. How to copy paste the program codes from 10.5 version to 9.1 ...
0
votes
1answer
38 views

How to pass a variable (FilesToAdd) from VBA script (interface) to a Mapbasic program?

Option Explicit Public FilesToAdd As Integer Private Sub TEST_Click() FilesToAdd = 1 Dim b As Variant Dim Prog As String Dim File As String Prog = "C:\Program ...
2
votes
0answers
65 views

String Size/Query in Mapbasic

I want to select many objects on the screen and select other objects that share the same attributes with the chosen group. So I'm creating a tool to select many object based in five tables' columns ...
1
vote
0answers
38 views

Changing object/point to custom symbol based on a specific name in MapInfo, using MapBasic

First, I must clarify I am green when it comes to programming and Basic. I only started trying to use MapBasic and have reviewed a few sites and their reference guide to get an idea of what I can do ...
1
vote
0answers
76 views

Unable to copy text out of MapInfo 12 info tool

As the title says, I'm currently unable to copy and paste information out of the info tool box. Is there a way that this can be done normally or do I need to write a new tool/ is there a tool out ...
1
vote
0answers
40 views

Check Text Mode when Typing text MapInfo

I'm writing a code MapBasic How do I know text mode when I add text to Map. Can help me!, check cursor texting mode
1
vote
0answers
114 views

Reload image in MapInfo

I have a mbx that creates a layout. The layout consist of a number of .wmf pictures and ofcource a map. During the execution I create .Tab files that reference to the pictures looking like: ...
0
votes
0answers
18 views

How to attach a counter to a mapbasic program in order to account for its usage?

At the beginning, I thought of using this simple counter...but it will initialize each time the program is run... So, I was wondering if there wasn't any application I could attach to mapbasic in ...
0
votes
0answers
25 views

Is it possible to export MapJ object into TAB file in MapXtreme?

I am trying to open a TAB file having geometry information and bind/join it with JDBC Table having attribute information. Now I have to export the joined table along with map/geometry information from ...
0
votes
0answers
74 views

finding length of a custom type array in mapbasic

Hello I am just getting started with MapBasic and I have run in to some trouble trying to count the items in a custom type i have tried accomplishing this by running a loop until an error occur. ...
0
votes
0answers
112 views

Check for extraneous bytes that appear before %PDF at the head of a MapInfo printed PDF file?

I am using a MapBasic program that automatically prints individual PDF maps of each polygon in my table. After getting an Adobe Reader XI update, the PDFs no longer open. I receive the following ...
0
votes
0answers
81 views

How to code for Thematic map in Mapbasic?

I would like to write code for creating a thematic map. The GUI command in Mapbasic window shows many lines in order to set up the different colours which will be used on the different polygons ...
0
votes
0answers
38 views

Is there any way to get the call stack in Mapbasic?

Is there any (supported or unsupported) way of getting the call stack at a given point in a Mapbasic program?
0
votes
0answers
156 views

How to set Window id in Mapbasic?

Last couple of days i am working with creating thematic map using MapBasic. I am facing some difficulties while doing scripting and compilation.i am getting error due to Dynamic Window Id. does any ...
0
votes
0answers
199 views

Help exporting CSVs using MapBasic

I'm a beginner to MapBasic and I'm currently working on a tool, I want to export a table as a .csv either using Run Command or Export. I want to export it to a specific directory, for example ...
0
votes
0answers
140 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 ...