Go to documentation repository
Page History
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 | ||
|---|---|---|
| ||
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 | ||
|---|---|---|
| ||
The Short Messages Service is supposed to must be installed and working work properly. |
| Code Block | ||
|---|---|---|
| ||
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", "");
} |
Overview
Content Tools