该帮助的版本不再更新,请参见https://www.jmp.com/support/help/zh-cn/15.2 获取最新的版本.


Show(), Print(), and Write() put messages in the log window. Speak(), Caption(), Beep(), and StatusMsg() provide ways to say something to a viewer. Mail() can send an e-mail alert to a process operator.
提示:To preserve locale-specific numeric formatting in Show(), Print(), or Write() output, include <<Use Locale(1).
Show() displays the items that you specify in the log. Notice that when you show variables, the resulting message is the variable name, an equal sign, and its current value.
X = 1;
A = "Hello, World";
Show( X, A, "foo" );
Print() sends the message that you specify to the log. Print() is the same as Show() except that it prints only the value of each variable without the variable name and an equal sign.
A = "Hello, World";
Print( X, A, "foo" );
Write() sends the message that you specify to the log. Write() is the same as Print() except that it suppresses the quotation marks around the text string, and it does not start on a new line unless you include a return character yourself with the \!N escape sequence.
myText = "Here is a message.";
Write( "Here is a message." );
Write( myText || " Do not forget to buy milk." ); // use || to concatenate
Write( "\!NAnd bread." ); // use \!N for return
The sequence \!N inserts the line breaking characters that are appropriate for the host environment. For an explanation of the three line breaking escape sequences, see “Double Quotes” on page 85 in the “JSL Building Blocks” chapter.