SendInterSCARMessage

From SCAR Divi Manual
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