Go to documentation repository
Documentation for Intellect 4.10.4. Documentation for other versions of Intellect is available too.
Previous page Next page
The MsgToString method transforms MsgObject objects (including the static Event object) into a String variable.
Method call syntax
function MsgToString() : String
Method arguments: no arguments.
Usage examples
Problem. Send the messages about all events registered for Microphone 1, to a specified e-mail address.
Note
The Short Messages Service is supposed to be installed and working 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", ""); }
Overview
Content Tools