version 2004 (Modified)
Is license available {(license)} Boolean
Parameter | Type | Description | |
license | Number | Plug-in for which license validity testing is desired | |
Function result | Boolean | True if plug-in is available, otherwise False |
Description
The Is license available command enables you to know 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 may 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 Draw License | Longint | 808464694 |
4D For OCI License | Longint | 808465208 |
4D View License | Longint | 808465207 |
4D Web License | Longint | 808464945 |
4D Write License | Longint | 808464697 |
4D Client Web License | Longint | 808465209 |
4D Client SOAP License | Longint | 808465465 |
4D SOAP License | Longint | 808465464 |
4D ODBC Pro License | Longint | 808464946 |
4D for ADO License | Longint | 808465714 |
4D for MySQL License | Longint | 808465712 |
4D for PostgreSQL License | Longint | 808465713 |
4D for Sybase License | Longint | 808465715 |
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
Get plugin access, GET PLUGIN LIST, SET PLUGIN ACCESS.