Documentation for Intellect 4.11.0-4.11.3. Documentation for other versions of Intellect is available too.

Previous page The SetParam method  The StringToMsg method Next page


The MsgToString method converts the MsgObject objects (including the Event static object) into a String variable.

Syntax for method invocation:

 function  MsgToString() : String

There are no method arguments.

Example. Send messages about all events registered for microphone 1 to a specified email address.

Note

The Short Messages Service must be installed and work properly.

 if (Event.SourceType == "OLXA_LINE" && Event.SourceId == "1")
{
  var msgstr = Event.MsgToString();
DoReactStr("MAIL_MESSAGE", "1", "SEND", "subject<Microphone 1>,body<" + msgstr + ">");
DoReactStr("MAIL_MESSAGE", "1", "SEND", "");
}