Show/Hide Toolbars

Licence Protector 5

 

See full description - Store data in the license file

 

 

Name

GetConfig                                                                                                        

Purpose

retrieve a value from the data area using the ID configname

Params

Parameter

Type

Example

Note

Configname

String

DBPassword

Unique ID

Returncode

Returncode

Type String

Note

Empty

ID does not exist or the value string is empty. If you are not sure use ExistsConfig to check if the ID exists.

Full String

The value assigned to the ID configname

Usage

Read the content of the config

Sample

 

  sRes := lic.GetConfig(‘DBPassword’);

  if sRes <> ‘’ then

  begin

     << e.g. use the read value to open the database connection >>

     ...

  end

  else

  begin

     << to be sure that the config exists do a ExistsConfig call >>

     if ExistsConfig(‘DBPassword’) then

     begin

        << the value really is empty >>

        ...

     end

     else

     begin

        << the config DBPassword does not exist >>

        ...

     end;

     ...

See also

Store data, SetConfig, DeleteConfig,ExistsConfig, IsConfigVisible