hmFree_IsLicensed

hmFree_IsLicensed(addOn) -> status

Parameter          Type             Description
addOn              Text         ->  Add on number
status             Longint      <-  Status code

Description

The command hmFree_IsLicensed checks the registration of hmFree.

If you pass hmFree_AddOn_None in addOn you will get the status of the hmFree registration.
If the registration is valid, you will get a 0 as result. If you are running in demo mode, you will get a -4. See status codes in the chapter hmFree_Register.
If you pass one of the following constants, you can check, if an add-on is registered or not:


If the add-on was registered correctly, you will get a status code of 0, otherwise -12.

Example


C_LONGINT($vl_status)

$vl_status:=hmFree_IsLicensed (hmFree_AddOn_None)