Show/Hide Toolbars

Licence Protector 5

 

This command allows to change a lot of properties of the license file and modules.

 

This command can be blocked for security reasons either in the license file template template with the value AllowSetVal Set <AllowSetVal>No</AllowSetVall>  

or within the License Generator. To read the values use GetVal. See also Anti Hacker Strategies

 

 

 

Name

SetVal                                                                                                          

Purpose

Sets values in modules or the license file

Params

Parameter

Type

Example

Note

ModuleID

String

D1001

Unique ModuleID – identifies the module to be tested. If empty the call is supposed to set a value from the license file

Token

String

TLI

The token. See token list

Value

String

200

The value as a string

Returncode

Returncode

Type Integer

Note

0

The module or license was successfully changed

4101

One or more parameters are invalid, perhaps the token is unknown or the Value could not be converted to the required type

4099

This module type does not exists

4102

Your Licence Protector Edition does not allow  to perform this operation

All other values – see return codes

The operation was not successful

Usage

Alters a module or change values in the license.

Sample

 

  iRes := lic.SetVal(‘D1001’, ‘TLI’, ‘200’);

  << the total licenses of module D1001 are set to 200 >>

  ...

See also

Altering modules, Token list, AddModule, DeleteModule, GetVal

 

 

 

See also
 
Token List SetVal
GetVal