SendInterSCARMessage

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

Definition

function SendInterSCARMessage(const Id, Msg: AnsiString): Boolean;

Availability

SCAR Divi 3.00 > Current

Description

Allows SCAR to used shared memory to send message to itself or other instances of SCAR. The Id parameter represents a channel used for the communication, like a port for TCP sockets, while the Msg parameter is passed the message to send.

Example

begin
  SendInterSCARMessage('Test', 'Hello World!');
  Wait(1000);
  WriteLn(ReadInterSCARMessage('Test'));
end.

Output:

Hello World!

See Also