Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
MapBasic is a programming language for the creation of additional tools and functionality for MapInfo Pro Desktop GIS
4
votes
Accepted
replace character in string in mapbasic
Unfortunately, there is no built in 'search & replace' functionality in the MapBasic language. …
2
votes
Accepted
How to reuse code with a few inputs each time in mapbasic (sub or function)?
strWorkingFolder, will either need to be declared within the sub procedure itself or outside of any sub or function so as to give it modular scope (which just means to allow any of the code from the mapbasic …
2
votes
Changing Background Color of Selection Rows using MapBasic?
I don't think it's possible to change the row highlight colour for a selected row and I suspect that the selected rows are highlighted grey when your browser window is not the window in focus. Try it …
2
votes
MapBasic Dialog Preserve command error: No active Dialog
Unfortunately a pure MapBasic application only supports modal dialog boxes. … If you want your dialog to be modeless your best bet is to use a custom .NET dialog box compiled into a dll and called from your MapBasic application. …
2
votes
Open multiple files using fileopendlg() function
Unfortunately, MapBasic does not provide the means to open multiple files through the FileOpenDlg function. …
4
votes
Accepted
Mapbasic cycle through directory of tab files
First thing you need to do is either register the text file as a mapinfo table or, better in my opinion, just read the text file directly to get the table paths from it. Then, loop through the table p …
2
votes
Accepted
Mapbasic set mapwindow for hotlink code to run
Ah, based on your comment above I've noticed you're not using the correct window identifier. Basically, each window in MapInfo has a window ID and you need to get this for the Mapper window that you'v …
3
votes
Accepted
MapInfo/Mapbasic - test if a mapper is open
The best approach is to write a function that tests all open windows and checks if they are a mapper or not. If it finds a mapper it returns the window ID otherwise it returns 0. I haven't tested this …
2
votes
Accepted
Performing multiple selection using MapBasic?
You could take a slightly different approach with this. If you create a temporary table containing all your array values, let's call it RouteIDs, then you can use just one SQL select which may be more …
2
votes
Mapbasic Error - Alter Object cannot operate on an unitialized object variable
An alternative to this approach, and a more efficient way to do this as MapInfo can deal with looping through the table internally, is to extract the style update code into a separate function which y …
3
votes
Accepted
MapBasic IDE Switch from Code view to Design view
The designer in the IDE simply allows you to autogenerate the code based on a visual layout, it isn't capable of reverse engineering the code into a layout. There is an option to save a layout to file …
1
vote
Accepted
Running a function in Mapbasic
Have you got OpenTab declared as a function at the top of your code or in an included .def file?
eg. Declare Function OpenTab(ByVal TableName as String, ByVal sAlias as String) As Logical
Also, you …
3
votes
Accepted
Create polyline using MapBasic (unknown number of nodes)
I don't think you need to create the PLine object explicitly, you'll be pleased to hear it's much simpler than that.
Use the ToolButton as you have set up in your first code example and set the DrawM …
4
votes
MapInfo 12.5 or 16 writing scripts
Sure, if you run MapInfo from the command line with the -server parameter then MapInfo will run in the background with no splash-screen and no application window. You can then run your MBX on this ins …
2
votes
Mapbasic JOIN and retain unmatched records
You can do it in exactly the same way you would do it in MapInfo Pro by accessing the menu commands defined in the menu.def file. Specifically you want to use invert selection as you've already stated …