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