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
21 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
115 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 ...
1
vote
1answer
29 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 ...
1
vote
1answer
118 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
61 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
161 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
96 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
55 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
31 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
66 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
75 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
53 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
98 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
44 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
120 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
28 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. ...
0
votes
0answers
38 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
31 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
0answers
28 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
0answers
33 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
102 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
113 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
195 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
236 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
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 ...