Is license available

4D - Documentation   Français   English   German   4th Dimension 2003, Command Theme List   4th Dimension 2003, Command Alphabetical List   4th Dimension 2003, Constant Theme List   Back   Previous   Next

version 6.8.1


Is license available {(license)} Boolean

ParameterTypeDescription
licenseNumberProduct/plug-in for which license validity testing
is desired
Function resultBooleanTrue 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:

ConstantType Value
4D Draw LicenseLongint808464694
4D for OCI LicenseLongint808465208
4D View LicenseLongint808465207
4D Web LicenseLongint808464945
4D Write LicenseLongint808464697

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.


4D - Documentation   Français   English   German   4th Dimension 2003, Command Theme List   4th Dimension 2003, Command Alphabetical List   4th Dimension 2003, Constant Theme List   Back   Previous   Next