ApplyActivationKey

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

 

This function allows to store / apply an Activation Key in the license file in case that the License Viewer is not used.

 

Invoking this command without the parameter Activation Key will pop-up a dialog to type in a key. If you want to use your own dialog just provide as parameter the Activation Key.

 

Name

ApplyActivationKey                                                                              

Purpose

Insert an Activation Key to change the properties of a module or to change the Copy Protection. Former ReadActivationKey

Params

Parameter

Type

Example

Note

Activation Key

String

UIGC345EPR5820AHKLD35PM5F3M323K

A key that is 32 characters long or an empty string to open a input window

Returncode

Returncode

Type Integer

Note

0

The Activation Key was successfully added to the license file

258

The Activation Key could not be read, possibly a wrong key

257

This Activation Key was already used

Other return codes

Operation failed, see list of return codes

Usage

Add a received Activation Key to the license file or open a dialog to let the user enter a needed key. Note: Only those keys with appropriate installation codes could be applied.

Sample

 

  iRes := lic.ApplyActivationKey(sTheNewKey);

  if iRes <> 0 then

  begin

    << an error occurred >>

     ...

  end

  else

  begin

    << everything is fine, continue >>

     ...

See also

Copy Protection, Activation Keys, ApplyActivationKeyForProject, Web Activation, Projectname

 

Page url: http://www.helpserver.biz/onlinehelp/lp/easygo/2.7/help2000/index.html?fr_applyactivationkey.htm