Questions tagged [mapbasic]

MapBasic is a programming language for the creation of additional tools and functionality for MapInfo Pro Desktop GIS

13 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
128 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
24 views

Converting MapInfo to interactive layered PDF to access the full map?

I want to convert the full map I have in Pathloss 5.0/MapInfo 9.5.1 format into PDF so that I can access the whole map in a PDF file. If I zoom in, the PDF file will be zoomed into the smallest ...
1
vote
0answers
100 views

MapBasic: expression does not evaluate to a column or table name

I want to create a new table using MapBasic to fill it later with log events. Those log will go in a new table created each year. Here is my code (error occurs on row with Create Table): ' --- Log ...
1
vote
0answers
81 views

HttpPOST and MapBasic

Can anyone provide an example of how one would use the (pre-defined) function Function HttpPost( ByVal strURL As String , ByVal strHeaders As String , ByVal ...
1
vote
0answers
138 views

How to build Geometric network in MapInfo?

I have sample dataset of Water network. I wanted to make it geometrically connected network. I was trying to trace the network end to end, I have used "FnodeTnode tracing" plugin, but I was not lucky ...
1
vote
0answers
164 views

Avoiding divide by zero in MapBasic?

In select statement how to avoid divide by zero in MapBasic: select (col1/col2) "result" If col2 is 0 it returns null. How to use ISNULL or something in mapbasic?
1
vote
0answers
65 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
170 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
23 views

Mapbasic crashes when simple print to text file is added

I want to log the message text in a mapbasic script to a txt file but the program now crashes. Print ProcessThese.FullPath Open file "D:\4_RefreshMB.txt" for output as #1 Print #1, ProcessThese....
0
votes
0answers
100 views

Converting .grd to .asc using MapBasic in MapInfo 16

Can someone please provide an example to show how this would work. For example, I am trying to convert from .GRD to .ASC, would my MapBasic code look like this: public void Convert(string "C:\Users\...
0
votes
0answers
66 views

Mapbasic code runs but no output is generated

My code (from previous questions here) to generate a list runs but there is no output... Include "MapBasic.def" Declare Sub Main Sub Main Dim path_to_temp_tables As String path_to_temp_tables = "" ...
0
votes
0answers
75 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
630 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 ...