Show/Hide Toolbars

Licence Protector 5

 

This command validates, if the Activation Key is a valid key for the product.

 

Name

IsKeyValid                                                                                            

Purpose

This command validates, if the Activation Key is a valid key for the product.

Params

Parameter

Type

Example

Note

Key

String

HX4a7-5CYE0-11CFy-6sjwX-kcC3Q-Aj8Eh

Must be a Licence Protector Activation Key

Returncode

Returncode

Type Boolean

Note

True

The Activation Key can be used for this product

False

The Activation Key cannot be used for this product

Usage

Use this function before you use a command like ApplyActivationKey or any other command, which uses an Activation Key as a parameter

Sample

 

  bOk := lic.IsKeyValid(‘HX4a7-5CYE0-11CFy-6sjwX-kcC3Q-Aj8Eh’);

  if bOk then

  begin

         << it is a valid Activation Key >>

         ...

  end

  else

  begin

         ...

See also

Commands to analyze an Activation Key

 

 

To use this command, the license file must have been opened with one of the prepare commands.

 

See Analyze an Activation Key for an overview about all commands.