Scripting Guide > Types of Data > Path Variables > Relative Paths in Variables
发布日期: 09/18/2023

Relative Paths in Variables

If you plan to use relative paths in variables, you must set the default directory. Then any path not preceded by a drive letter is relative to the default directory. Here is an example:

Set Default Directory( "C:\users\smith\data" );

To return the value of the default directory, use Get Default Directory().

Get Default Directory(); // returns "C:\users\smith\data"

So the following expression resolves as C:\users\smith\data\cleansers.jmp:

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