Difference between revisions of "ReadInterSCARBoolean"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function ReadInterSCARBoolean(const Id: AnsiString): Boolean; </source> ==Availability== SCAR Divi 3.00 > Current ==Descrip...")
 
(No difference)

Latest revision as of 13:04, 26 November 2015

Definition

function ReadInterSCARBoolean(const Id: AnsiString): Boolean;

Availability

SCAR Divi 3.00 > Current

Description

Allows SCAR to used shared memory to read messages sent by itself or other instances of SCAR. The Id parameter represents a channel used for the communication, like a port for TCP sockets. The message is read and converted to a boolean which is returned. If the channel did not contain an boolean, true is returned.

Example

begin
  SendInterSCARBoolean('Test', False);
  Wait(1000);
  WriteLn(BoolToStr(ReadInterSCARBoolean('Test')));
end.

Output:

False

See Also