Sign in Join
FPDoc Onlineexperiment

TDaemonDefs.DaemonDefByName function

Member of TDaemonDefspublicIn unit DaemonApp

Find and return instance of daemon definition with given name.

Declaration

pascal
function DaemonDefByName(const DaemonName: string): TDaemonDef

Arguments

DaemonName

Daemon name to search for.

Function result

Matching TDaemonDef instance.

Description

FindDaemonDef searches the list of daemon definitions and returns the TDaemonDef instance whose name matches DaemonName. If no definition is found, an EDaemon exception is raised.

The FindDaemonDef call does not raise an error, but returns Nil instead.

Errors

If no definition is found, an EDaemon exception is raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.