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
0answers
16 views

Closing ,Excel,Acess, Word (2010 versions)from within MapBasic windows

While Using an MBX it would be very useful to just close any of the Microsoft office software after saving a Mapinfo selection to an Access database, then running an Excel AutoExec invoked from ...
1
vote
1answer
20 views

Popup menu writing value from array

I have successfully created a custom dialog box which uses an array to read in a list of developer names from a table, and populates the selected record based on the row number pulled in from the ...
0
votes
1answer
35 views

Problem compiling a file in MapBasic v 10.5

There are 4 error messages with the script below. Can anybody find out how to solve them please? Everything seemed to match up in Notepad + + Any other hints would be gratefully received. Thank you ...
1
vote
1answer
51 views

Export MapInfo map to Google Earth (.kml file)

I have a map in MapInfo. I can convert it to Google Earth file (.kml) manually but I would like to do it automatically by commands in a function. Can anyone help me?
0
votes
1answer
162 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
2answers
286 views

Drawing BTS sectors in GSM?

I'm very new to Mapbasic. I tried to make a short code to draw some BTS in GSM but I can't do thant (over 1 month). I have a table with these column: Sitename, Lon, Lat, Azi, Beam, Dist. Can ...
1
vote
1answer
188 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
995 views

Converting MapInfo (MapBasic) Script into ArcPy? [closed]

I have a MapBasic script that divides an irregular polygon into smaller polygons of 1 hectare each. Would anyone help me to convert the following into an ArcPy script. ' This program requires an ...
1
vote
1answer
33 views

Display all field of one record in mapbasic

I have a table with many columns, one of that is lon/lat. After I draw all points on a map, I want to display all other columns contents if I right click on a specific point. (It looks like to change ...
0
votes
2answers
967 views

How to select nth row in mapbasic?

There are multiple rows in my .tab file in mapinfo. Is there any way to select nth row in mapbasic window of mapinfo?
1
vote
1answer
144 views

MapInfo / Mapbasic: simple compile of table from six source tables

I have a project which I am reviving after a gap of some years. It involves several hundred runs within MapInfo, scripted in MapBasic. I am stuck at a point that is so simple, it's driving me nuts. ...
1
vote
1answer
117 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 ...
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.
0
votes
2answers
89 views

Split polyline where it intersects with other lines in MapInfo

I have a polyline (bus route) which I want to split where it intersects with other lines (not polylines) I have created. I'm happy to initially do it manually to see how it works, although I would ...
0
votes
0answers
151 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 ...
0
votes
1answer
35 views

Getting layer number from layer name in MapInfo (vis MapBasic)

Is there a function to get the layer number from the layer name in MapBasic? I am writing a script to loop through each layer I have and apply styles and labelling. Each layer is named _#_LINE or ...
0
votes
1answer
33 views

MapBasic- Keeping the Selection Alive After an edit?

I have a function which is invoked from looping over selected rows in the selection table. The stored proc is invoked & everything works well for the first record in the selection however after ...
2
votes
1answer
45 views

For Each loop over an Array in MapBasic?

.NET C# developer here. Trying to figure out MapBasic with the IDE for the first time. It's shall we say...a different experience to C# in Visual studio. I have a ButtonPad with a button that calls ...
1
vote
1answer
65 views

How to erase outside in MapBasic?

i want to ask about erase outside in MapBasic. I have two table : sensus and voronoi And I want to erase the overlap areas. How can I do it? This is my syntax Select ...
2
votes
1answer
71 views

How can I change region style in MapBasic

I've problem with my code in MapBasic for change region style in MapBasic. I've created voronoi and I want to select that voronoi and change the style of it to yellow border and no fill. I already ...
1
vote
1answer
67 views

How do I get value from edittext or text field in MapBasic

I have created a dialog menu in MapBasic which user can enter value in text field. I am a newbie in MapBasic Programming. My question is how to select data from database using text field value? ...
-1
votes
1answer
39 views

Window Message Font in MapBasic [closed]

How can I write texts with different colors per text in the same window message using MapBasic?
1
vote
1answer
35 views

Query Sql Error

I want to join these 5 tables with MapBasic, because i want to use in statistic : Select * From Malade, Maladie, Ilot, Etat_Ilot, Pauvreté Where Malade.Maladie = Maladie.ID_maladie ...
0
votes
2answers
44 views

send mail with MapBasic

How can i send mail with MapBasic?? I have already tried this code, but it's not working i used SenMail Application sub send dim cmdstr, subj, msg as string subj = "Hello from MapInfo-L" ' is the ...
0
votes
2answers
60 views

PRACH all counters plot not well visualized

Here's the output that Im getting: Im not sure why it is doing this.. I want it to be more like this When i try plotting only two counters (two radii): It is giving me this: I hope it is ...
0
votes
1answer
77 views

Edit listbox and table value from a dialog box

Good day! I have a code that import my table on a listbox and able to add on it. i was stock on some codes when i double click a selected value on my listbox to open another dialogbox to edit (the ...
0
votes
1answer
117 views

How to setup an ODBC Connection with Access database in Mapbasic

Good day! i'm trying to setup an ODBC connection in my Access database through mapbasic code, but i don't how should i start this code. I could make it manually and able to have a link between my ...
0
votes
1answer
57 views

Creating points from variable without long/lat using MapBasic?

Can anyone help me to create a points without long/lat in mapbasic if i have a table with variable integer. I will have popupmenu for this table and everytime i select one it will create a points ...
0
votes
1answer
97 views

Mapbasic - Create a Table array based on a variable

I wanted to create a temporary table as per my variable. If i have a value of 10, it will create a table with 10 rows. How should i start my code in MapBasic?
2
votes
1answer
67 views

Interpolation code with Mapbasic

I have a drivetest data, and usually I do an interpolation using the values taken in the drive with their respective lat/long. I use natural neighbor. You can see an example attached. I am trying ...
0
votes
0answers
40 views

How do you reference a .TAB file linked to a spatial database within your workspace?

I have created a spatial database in SQL Server. I then created a MapInfo .TAB file that links directly to that spatial database table and I can view it inside MapInfo Professional without any issue. ...
2
votes
2answers
105 views

Does mapbasic support function overloading?

I am creating application with mapbasic. Now that it's been some time with mapbasic I found that the language is very fundamental and does not support functionality that I took for granted in Java or ...
-1
votes
1answer
80 views

Same Sector Created in Mapinfo Help

The PRACH data is saved into a tab and then moved into another tab file "ToUpdate" Select * from PRACH_data where Obj into ToUpdate Fetch First From ToUpdate Do While Not EOT(ToUpdate) circ = ...
1
vote
1answer
44 views

How do I make a thematic layer 50% translucent in MapBasic?

I'm trying to make this enhancement to an old program written by another author. I was able to make the layer translucent prior to Shade Window command, but its not working. Here is the code: Add Map ...
0
votes
1answer
91 views

Draw lines from points to points not by lon/lat in mapbasic

How to draw lines from points to points not by lon/lat What I need is a cross connection with cable like the image below: I have N input and M output points Any idea will be appreciated highly.
0
votes
1answer
32 views

MapBasic tool not compiling due to undefined variable

I am attempting to compile a quick MapBasic tool I have written, however it won't compile despite the variable being clearly defined It's probably something simple I am missing, can somebody point ...
0
votes
0answers
46 views

PRACH data plotted in a better way but not completely

I am close to finishing the visualization of PRACH in mapinfo. Here's my output so far (for 4 counters) Unfortunately, for some sectors it is not working as it should be. Can you please help out? ...
0
votes
0answers
51 views

PRACH data mapped right but arcs not on top properly

PRACH data is mapped right. However, how would it be possible to draw the arcs on top of each other for all the 21 PRACH counters? Here's a snapshot of the code: Fetch First From ToUpdate Do While ...
0
votes
1answer
101 views

Create Sector PRACH in Mapinfo

I am trying to write a code that creates the PRACH per sector per band for a site. My PRACH data contains: "Site name, lat, long, beamwidth, azimuth, and distance" I got to the point of creating ...
0
votes
0answers
34 views

Find Crossovers for multiple contours drawn over a lake

I am new to MapBasic and wanting to help out with this problem. I have some ideas on what the algorithm might be to start this problem but I have never written anything in MapBasic. I do have some ...
0
votes
2answers
280 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
3k views

How to connect points to line in Mapinfo?

I am using Mapinfo and Mapbasic. I have all the points stored in a DBMS. I have four columns with four points longitude and latitude. Is there any way to connect the points? I am using Mapinfo ...
2
votes
1answer
4k views

Creating polygons from points in Mapinfo

I have a huge number of points(co-ordinates), from which I am required to draw a polygon in Mapinfo. This required polygon is a square of 200m size. All I have now is the left side lower end of the ...
1
vote
1answer
140 views

Transform coordinates in MapInfo with GSB data

Does anybody know if MapInfo (or MapBasic) is capable to do coordinate transformation using the NTv2 (National Transformation version 2) method? Currently Switzerland changes their national ...
0
votes
1answer
319 views

How to Create site cells sectors in MapBasic for over 1000 records

I am new to mapbasic and i need to learn to create the cells of a site in MapInfo using the Mapbasic if any one can help me thanks in advance i Used the bellow script i found in the Web, and it was ...
-3
votes
1answer
82 views

edit text style object in mapbasic

I have created a text object, but then I want to change this object (front and size, ....). Example: I have created a text object is "Memory" the front is "news Roman Times" and the size is 12. I ...
1
vote
1answer
98 views

The command to open multiple tables in MapBasic

I would like to know what commands/statement can open (or select) multiple tables in MapBasic?. Please show me? Thanks
1
vote
1answer
90 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 ...
0
votes
1answer
218 views

In Mapbasic, How to populate my table row data in a dialog box with RadioGroup and EditText

Good day! Im trying to pupulate my table row data in a dialog box with Radiogroup and editText control. I successfully get the column value list from popupMenu control after selecting the table and ...
1
vote
1answer
116 views

Creating an annulus sector with mapbasic

Knowing the center of rotation, start and end angles, inner an outer radius, how can this be achieved with MapBasic