RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TServerCollection.GetBalancedName Method

Returns the ComputerName property of a randomly chosen server from the Items property array.

Pascal
function GetBalancedName: string;
C++
__fastcall AnsiString GetBalancedName();

Call GetBalancedName to get the name of an available server. Servers in the Items property array are considered available when no connection attempts have failed (HasFailed is false) and their Enabled property has not been set to false. GetBalancedName selects an available TServerItem at random from the Items property array and returns its ComputerName property. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!