Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Method call syntaxSyntax for method invocation:

Code Block
languagejavascript
 function  MsgToString() : String

Method arguments: There are no method arguments.

Usage examples

ProblemExample. Send the messages about all events registered for Microphone microphone 1 , to a specified e-mail email address.

Info
titleNote

The Short Messages Service is supposed to must be installed and working work properly.

Code Block
languagejavascript
 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", "");
}