Scripting Guide > JSL Building Blocks > Rules for Name Resolution > Variable Names Used as Arguments
发布日期: 08/07/2020

Variable Names Used as Arguments

Message arguments are evaluated as a rule. In previous versions of JMP, some messages interpreted a variable name as a string value. For example, the following script results in a linear scale in the current version of JMP and a log scale in JMP 11.

Log = "Linear";
axis box << Scale( Log );

The syntax Scale( "Log" ) is preferred for setting a string literal. To catch ambiguous instances, set the “Allow Unquoted Strings in JSL” General preference to “Yes (with a warning)” or “No”.

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