version 6.8.1
Is license available {(license)} Boolean
| Parameter | Type | Description | |
| license | Number | Product/plug-in for which license validity testing | |
| is desired | |||
| Function result | Boolean | True if product/plug-in is available, otherwise False |
Description
The command Is license available enables you to know the availability of a product or 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 |
In this case, the command returns True if the corresponding product is loaded and if (with 4D Server) it has a license available.
For instance, if you have a serial number for 4D Draw but no available expansion serial number, the command returns True with a 4th Dimension single-station system but False with 4D Server. On the contrary, if you have an expansion serial number for 4D Draw but not a serial number, the command returns True with 4D Server but False with 4th Dimension. If you have both a serial number and an expansion serial number, the command returns True in all cases.
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.