Show/Hide Toolbars

Licence Protector 5

 

See full description - Store data in the license file

 

Name

SetConfig                                                                                                        

Purpose

Save data in the license file

Params

Parameter

Type

Example

Note

Configname

String

DBPassword

Unique configname

Configvalue

String

Secret

The value as string

IsVisible

Boolean

False

Don’t show that config in License Viewer (recommended for passwords and other secret information)

Returncode

Returncode

Type Integer

Note

All values

See list of return codes

Usage

Insert a new config with name, value and visibility information. If the config with the specified name does not exist it’s automatically added.

Update the value and visibility of an exisiting config.

Sample

 

  iRes := lic.SetConfig(‘DBPassword’, ‘secret’, false);

  if iRes <> 0 then

  begin

     << an Error occurred >>

     ...

  end

  else

  begin

     << the config is successfully added or updated >>

     ...

See also

Store data, GetConfig, DeleteConfig,ExistsConfig, IsConfigVisible

 

If the ID (configname) already exists, the existing value (configvalue) is updated with the new value.