reduSetPreferred()
Sets the Preferred to left or right in a redundant system.
Synopsis
int reduSetPreferred(string sSystem, int peerNr, bool bAsk=true)
Parameter
Parameter | Description |
---|---|
sSystem | System name |
peerNr | Number of the peer. 1 = Reduhost1, 2 = Reduhost2 |
bAsk |
TRUE = Window is open FALSE..For internal use, no windows |
Return value
The function returns 1 when it was succesfully executed and in case of errors -1.
Error
Description
Sets the Preferred to left or right in a redundant system
Example
The following example sets the preferred to left.
main()
{
string sSys = "System1";
int peerNo = 1;
bAsk = TRUE;
reduSetPreferred(sSys, peerNo, bAsk);
}
Assignment
Redu/Dist functions
Availability
CTRL