msgChanged

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
msgChanged <handlerName>, <lineNumber>
Summary

Sent to the object that altered the msg global variable using the put command.

Introduced9.0
OSmac, windows, linux, ios, android, web
Platformsdesktop, mobile
Parameters
NameTypeDescription
handlerName

The name of the handler that modified msg

lineNumber

The line number within the script that modified msg

Example
on msgChanged pHandler, pLine
  set the text of field "Message" of stack "Message Box" to msg
end msgChanged
RelatedCommand: put
Glossary: message, command
Keyword: msg, stdout
Description

Use the msgChanged message to display or log the value of msg when it is changed by a script.

If the msgChanged message is not handled the value of the msg will be logged to the system log unless the engine is running in no ui (command line) mode, in which case the value will be written to stdout.