我不在这里寻找答案。 只是分享我的发现。
我一直在尝试调试脚本,并遇到以下错误,该错误将不允许调试器通过为用户信息编程的启动通知窗口:
(以下消息可能不是实际错误;首选项“报告无效的显示框消息”为ON。)对象“ TextBox”无法识别消息“”。
调试器点击此代码后,它将挂起。 但是运行脚本超出了此错误,完全运行了脚本。 我在脚本中遇到了一个问题,这使我在相当长的一段时间内找不到解决方案。
最终,我发现我只是在文本框命令中放入了太多逗号,但是该错误并没有使我轻易地遇到此错误。 我还验证了我对“报告有效显示框消息”的首选项已取消选择。 与其他经验丰富的JMP用户接触,使我进入了此讨论板。 在演示中,我已附加了脚本中令人讨厌的部分的非特定版本。
Discontinue = 1;
/*
// This one was the problem window that gives the error:
//(The following message might not be an actual error; the preference 'Report Invalid Display Box Messages' is ON.) Object 'TextBox' does not recognize the message ''.
New Window( "Where is your file?", << Modal,
H Center Box( Text Box( "Looooooooooooooooong Note 1", << Set Font( "Arial Black", 10, "Bold"), << Set Width( 200) ) ),
Spacer Box( Size( 20, 15 ) ),
H Center Box( Text Box( "Looooooooooooooooooooong Note 2", << Set Font( "Arial Black", 10, "Bold"), , << Set Width( 200) ) ),
Spacer Box( Size( 10, 15 ) ),
H Center Box( Text Box( "Continue?", << Set Font( "Arial Black", "Bold" ) ) ),
Spacer Box( Size( 10, 5 ) ),
H Center Box(
H List Box(
Button Box( "Yes" ),
Button Box( "No", Discontinue = 0 )
)
)
);
*/
//This is the fixed window
New Window( "Where is your file?", << Modal,
H Center Box( Text Box( "Looooooooooooooooong Note 1", << Set Font( "Arial Black", 10, "Bold"), << Set Width( 200 ) ) ),
Spacer Box( Size( 20, 15 ) ),
H Center Box( Text Box( "Looooooooooooooooooooong Note 2", << Set Font( "Arial Black", 10, "Bold"), << Set Width( 200 ) ) ),
Spacer Box( Size( 10, 15 ) ),
H Center Box( Text Box( "Continue?", << Set Font( "Arial Black", "Bold" ) ) ),
Spacer Box( Size( 10, 5 ) ),
H Center Box(
H List Box(
Button Box( "Yes" ),
Button Box( "No", Discontinue = 0 )
)
)
);
print( "Testing...");
希望这有助于犯下这些简单错误的其他人,这些错误然后导致我们旋转轮子的时间比我们应有的长。 一旦我们脱离了自己的方式,通常就会有一个简单的解决方案。
这是一件很小的事情,但是有时候这件事使找到一个逗号,括号或半冒号变得容易一些。
在脚本窗口中,右键单击会弹出一个菜单,其中包含“重新格式化脚本”的选项。 当脚本不起作用时,它将给您一个错误和一个位置。 它还添加了制表符,间距和所有这些,以使便笺纸更具可读性。同样,看起来看起来很古怪的格式也是检测意外标点的好方法。