RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TServerCollection.FindServer Method

Returns the server from the Items property array that has a specified computer name.

Pascal
function FindServer(const ComputerName: string): TServerItem;
C++
__fastcall TServerItem FindServer(const AnsiString ComputerName);

Call FindServer to locate a server in the items property array given its ComputerName property. The ComputerName parameter specifies this computer name. Usually, this value is obtained by a previous call to GetBalancedName or GetNextName.

Note: FindServer returns the first item it finds with the given ComputerName property. Unlike the GetBalancedName and GetNextName methods, it does not ignore servers that have failed or been disabled (HasFailed is true, or Enabled is false).
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!