Scripting Guide > Types of Data > Path Variables > Create and Customize Path Variables
发布日期: 04/13/2021

Create and Customize Path Variables

You can create your own path variables or override some of the built-in variables with the Set Path Variable(). In the following example, the path variable is called root. The variable points to the c:/ directory.

Set Path Variable( "root", "c:/ ");

To get the value of the new variable, use Get Path Variable().

Get Path Variable( "root" );

"c:/"

Use your path variable as you would other variables. The following expression opens the myimportdata.txt file in the c:/ directory.

Open( "$root/myimportdata.txt" );

As with getting path variables, omit the dollar sign when setting path variables.

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