GetLicenseKind() function - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Returns a value representing the kind of license MapInfo Pro is using. You can call this function from the MapBasic window in MapInfo Pro.

Syntax

GetLicenseKind()

Return Value

SmallInt value.

Description

A value is returned as an integer. The possible return values are given in the table below with meanings. The return values in the left column are defined in MAPBASIC.DEF.

Return value ID Meaning
LICENSE_KIND_NOLICENSE 0 No License
LICENSE_KIND_REGULAR 1 Regular License
LICENSE_KIND_ADVANCE 2 Advanced License

Example

If GetLicenseKind() = LICENSE_KIND_ADVANCE Then
	Print "Advanced License"
End If

If GetLicenseKind() = LICENSE_KIND_NOLICENSE Then
	Print "No License" 
End If

End Sub

If GetLicenseKind() = LICENSE_KIND_REGULAR Then
	Print "Regular License"
End If