As @Andrei Veselov just wrote in the MapInfo Pro Community, we have made MapBasic v2021 is available for download:MapBasic v2021 Download.
Here's a list of the new and enhanced features for MapBasic v2021 divided into a few groups:
Functions and statements for the ribbon interface
Create Ribbon Tab
statement: This statement creates a MapInfo Pro ribbon tab.
Create Ribbon Context Tab
statement: This statement creates a MapInfo Pro ribbon contextual tab.
Create Ribbon Context Tab Group
statement: This statement creates a MapInfo Pro ribbon contextual tab group.
Set Ribbon Tab
statement: This statement updates a MapInfo Pro ribbon tab.
Set Ribbon Context Tab
statement: This statement updates a MapInfo Pro ribbon contextual tab.
Set Ribbon Control
statement: This statement updates a MapInfo Pro ribbon control.
Set Ribbon Clear
statement: This statement removes any tabs, contextual tab groups, groups and controls added to the ribbon by a running MBX.
Set Ribbon Context Tab Group
statement: This statement updates a MapInfo Pro ribbon contextual tab group.
RibbonInfo()
function: This function returns a property value of a ribbon control.
RibbonItemInfo()
function: This function returns a property value of a collection item under a control.
Execute Ribbon Control Handler
statement: This statement executes the MapInfo Pro ribbon control handler.
Tasks
TaskInfo()
function: This function returns the ID of a running or completed background task.
Set Task
Statement: This statement executes an operation on a task with the given task ID.
Regular Expressions
RegExReplace$()
function: This function replaces all or single RegEx matches in a string.
RegExMatch$()
function: This function matches the given RegEx pattern with the input string.
RegExSearch$()
function: This function gets the index of first the substring matching the given RegEx pattern with the input string.
Date/Time functions
DateAdd()
function: This function adds or subtracts a value in date units from the date variable.
DateTimeAdd()
function: This function adds or subtracts a value in date/time units from the datetime variable.
TimeAdd()
function: This function adds or subtracts a value in time units from the time variable.
DateSnap()
function: This function snaps or rounds the date as per the given date units.
TimeSnap()
function: This function snaps or rounds the time as per the given time units.
Age()
function: This function returns the calculated age in the specified unit.
CurrentAge()
function: This function returns the calculated age in the specified unit based on a given input date/time/datetime argument with respect to the current time period of the front time-series enabled map window.
FormatDateTime$()
function: This function formats the input DateTime value into a specified format and Locale.
StringToDate()
function: Added two new optional parameters to specify the Date Format and the Locale.
StringToDateTime()
function: Added two new optional parameters to specify the DateTime Format and the Locale.
StringToTime()
function: Added two new optional parameters to specify the Time Format and the Locale.
FormatDate$()
function: Added two new optional parameters to specify the Date Format and the Locale.
FormatTime$()
function: If the string parameter is passed as empty, MapInfo Pro time format would be the default time format.
Adornment and Smart Text
Create Adornment
statement: Added a new Smart Text Clause.
Set Adornment
statement: Added a new Smart Text Clause.
Tables and Data Access
Register Table
statement: You can now register OGR files.
Commit Table
Statement: Has a new token: Background
Export
Statement: Now allow exporting a table in an OGR file and exporting in the background.
TableInfo()
function: Added one new attribute.
Maps and Layers
Set Map
Statement: Add a new Filter Where
clause that applies a filter condition to a layer in a map. Added a new Time
clause for time-related map properties.
LayerInfo()
function: Added three new attributes for the map layer filter. Added thirteen new attributes for time-related layer properties.
MapperInfo()
function: Added 30 new attributes for time-related map properties.
Layouts
LayoutItemID()
function: Updates to the frame parameter properties.
LayoutItemWinID()
function: Updates to the frame parameter properties.
Miscellaneous functions
- MapCad Tools: MapCAD Tools that are executable using the MapBasic
Exec()
function
SessionInfo()
function: Has new attribute parameters: SESSION_INFO_TOKENS_ALL
and SESSION_INFO_TOKENS_RESERVED
CommandInfo()
function: Has new attribute parameters for ribbon controls: CMD_INFO_NAME
and CMD_INFO_FULLNAME
FormatNumber$()
function: Adds a new parameter, precision. You can now format a float number as per the precision value.
Select
Statement: You can now update a WHERE clause condition of a query and also refresh the query without recreating a new query table.
IsNull()
function: This function determines if a value is null
We hope you find these new functions and statements useful. If you have any questions, please ask!
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
------------------------------