Detecting key states in MapBasic

Posted on Leave a comment

Here’s another neat little MapBasic function I’ve been using recently. I needed a way of detecting whether a key on the keyboard was currently pressed or not. My intention was to show a hidden debugging dialog if a user shift-clicked on a specific button control, but there’s no in-built functions in MapBasic for detecting key […]

Regular expressions in MapBasic

Posted on 3 Comments

I’m going to take a break from all my recent QGIS posts to talk about some MapBasic news… I’m proud to announce the release of MbRegEx, an open-source library for using regular expressions in MapBasic scripts! If you’re not familiar with regular expressions, they’re an extremely powerful tool for string manipulation. They can be somewhat daunting […]

Investigating MapInfo’s Geocode Routine

Posted on Leave a comment

After doing a bit of work using MapInfo’s built-in Geocode routine I started getting curious about how the routine handles various special cases. After a bit of experimenting I thought I’d document what I found out. Starting with the simplest case, a street with odd numbers (1-9) on the left, and even numbers (2-10) on […]