Licence Protector

GetKeyAbsoluteDays

Hide Navigation Pane

GetKeyAbsoluteDays

Previous topic Next topic  

GetKeyAbsoluteDays

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

This command analyzes an Activation Key and gives as a result, if the key value for the number of days will be added or if the key value will overwrite the existing value in the license file.

 

 

Name

GetKeyAbsoluteDays                                                                            

Purpose

This command analyzes an Activation Key and gives as a result, if the key value for the number of days will be added or if the key value will overwrite the existing value in the license file.

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 license file value for the expiry date will be overwritten with the new value in the key (number of days)

False

the key value with number of days will be added to the value in the license file

Usage

When the user types in a key you could use this information in your application logic

Sample

 

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

  if bOk then

  begin

         << license file value will be overwritten >>

         ...

  end

  else

  begin

         ...

See also

GetKeyExpiryDate

 

 

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.