Licence Protector

SetConfig

Hide Navigation Pane

SetConfig

Previous topic Next topic  

SetConfig

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

 

See full description - Store data in the license file

 

Name

SetConfig                                                                                                        

Purpose

Sets a value and the visibility inside License Viewer into the config with the specified name.

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.