Difference between revisions of "ReadInterSCARInt64"

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

Latest revision as of 13:08, 26 November 2015

Definition

function ReadInterSCARInt64(const Id: AnsiString): Integer;

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 an int64 which is returned. If the channel did not contain an int64, 0 is returned.

Example

begin
  SendInterSCARInt64('Test', 5);
  Wait(1000);
  WriteLn(ReadInterSCARInt64('Test'));
end.

Output:

5

See Also