火神大哥,我用了你的这个脚本出现报错:
*Error* putprop: first arg must be either symbol, list, defstruct or user type - nil
请问怎么回事呀?在result弹窗下点了OK就报这个错。我定位不到putprop这个函数报错的地方
hiShowListBox()的Description里有这么一句话:“The list box is destroyed when it is removed from the screen".一开始没注意到这句话,以为和form一样生成了一次就会一直保存在内存里,没想到是即时摧毁的机制。
出问题的代码在最后面的一个赋值语句:”findInstCallTimesBox->choices=tempList". 当点击“OK”或"cancel"时,list box关闭,其索引的名字findInstCallTimesBox失效,所以就报错了。