Send Command Example

Details

Action

Sends a message to an Object in the MathScript Object hierarchy. Objects communicate with one another by sending messages. Each message is a request that the recipient of the message implement one of its methods. The methods themselves belong to the Type and not the actual Object. In a message such as:

Send MyObject Report Status[5]

the recipient is MyObject, and the Message is Report (the name of a method). The single argument to the program that implements the Report Method is the value of Status[5]. The
Send Command and the Get Function are the only ways to send messages in MathScript.