Skip to content

TDaemonDefs.IndexOfDaemonDef

Return index of daemon definition.

Declaration

Source position: daemonapp.pp line 293

public 
function TDaemonDefs.IndexOfDaemonDef(const DaemonName: string)
                                      : Integer;

Description

IndexOfDaemonDef searches the collection for a TDaemonDef instance with a name equal to DaemonName, and returns it's index. It returns -1 if no definition was found with this name. The search is case insensitive.

See also

Name Description
TDaemonDefs.FindDaemonDef Find and return instance of daemon definition with given name.
TDaemonDefs.DaemonDefByName Find and return instance of daemon definition with given name.