GetConfig

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

 

See full description - Store data in the license file

 

 

Name

GetConfig                                                                                                        

Purpose

Gets the value of the config with the specified name.

Params

Parameter

Type

Example

Note

Configname

String

DBPassword

Unique configname

Returncode

Returncode

Type String

Note

Empty

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

Full String

The value of the config

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

 

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