Scripting Guide > Scripting Platforms > Send Messages to a Platform
发布日期: 04/13/2021

Send Messages to a Platform

Before you can send messages to a platform, you need to create a platform object that you can send the messages to. Use the Send operator (<<).

The following line keeps a reference to a Oneway platform in the JSL variable called oneObj:

oneObj = Oneway( Y( height ), X( age ) );

Then, add the Send operator to send the platform object a message. In this example, the message is to turn on the Unequal Variances report:

oneObj << Unequal Variances( 1 );

To see which messages can be sent to a specific object, do one of the following:

Use the autocomplete shortcut. On a new line, enter the object name, then the Send operator (<<), and press Ctrl and space (Windows) or Ctrl and Option and space (macOS). The following example shows the messages that you can send to the platform object oneObj on Windows:

oneObj << (Ctrl+space)

A list of messages appears. Click one to insert it.

Use the Show Properties () function. Specify the object in the parenthesis. The following example shows the messages that you can send to the platform object oneObj:

Show Properties (oneObj)

A list of messages appears in the log.

需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).