ReadInterSCARInteger

From SCAR Divi Manual
Revision as of 23:53, 2 November 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function ReadInterSCARInteger(const Id: AnsiString): Integer; </source> ==Availability== SCAR Divi 3.00 > Current ==Descriptio...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

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

Example

begin
  SendInterSCARInteger('Test', 5);
  Wait(1000);
  WriteLn(ReadInterSCARInteger('Test'));
end.

Output:

5

See Also