reduSetActive()

Activates the emergency switch on the left or on the right.

Synopsis

int reduSetActive(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

Activates the emergency switch on the left or on the right.

Example

The following example activates the emergency switch on the left.

main()
{
  string sSys = "System1";
  int peerNo = 1;
  bAsk = TRUE;
  reduSetActive(sSys, peerNo, bAsk);
}

Assignment

Redu/Dist functions

Availability

CTRL