Skip to main content
Version: 20 R7 BETA

Is license available

Is license available {( license )} -> Function result

ParameterTypeDescription
licenseIntegerPlug-in for which license validity testing is desired
Function resultBooleanTrue if plug-in is available, otherwise False

This command is not thread-safe, it cannot be used in preemptive code.

Description

The Is license available command lets you find out the availability of a plug-in. It is useful, for instance, for displaying or hiding functions requiring the presence of a plug-in.

The Is license available command can be used in three different ways:

  • The license parameter is omitted: in this case, the command returns False if the 4D application is in demonstration mode.
  • You pass one of the constants of the “Is License Available” theme in the license parameter:
    | Constant | Type | Value |
    | ---------------------- | ------- | --------- |
    | 4D Client SOAP license | Longint | 808465465 |
    | 4D Client Web license | Longint | 808465209 |
    | 4D for OCI license | Longint | 808465208 |
    | 4D ODBC Pro license | Longint | 808464946 |
    | 4D REST Test license | Longint | 808465719 |
    | 4D SOAP license | Longint | 808465464 |
    | 4D View license | Longint | 808465207 |
    | 4D Web license | Longint | 808464945 |
    | 4D Write license | Longint | 808464697 |

In this case, the command returns True if the corresponding plug-in has a license available. The command takes into account any licenses attributed in Design mode or via the SET PLUGIN ACCESS command.
Is license available returns False if the plug-in is operating in demo mode.

  • You pass the ID number of the plug-in “4BNX” resource directly in the license parameter. In this case, the command behaves as described above.

See also

CHANGE LICENSES
License info
Get plugin access
PLUGIN LIST
SET PLUGIN ACCESS