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


The Host Is() inquiry function identifies the current operating system. Then actions specific to that operating system can be performed.
If( Host is( "Windows" ),
dll_obj = Load DLL( "C:/Windows/System32/user32.dll" )
You could also use Host is() to specify text sizes in reports for different operating systems. If you commonly write your scripts on Windows and share them with Macintosh users, the results can look different from what you intended. For example, the following expression sets the text to a larger size on Macintosh and a smaller size on Windows:
textsize = If( Host is( "Mac" ), 12, 10 );