修改时间 12-23-2009 01:30 AM
程序见附件。for循环是不是运行起来之后就不能中断了?那我能不能让for每循环一次之后check一下我的stop键的情况,如果为true就不进行后面的循环了?
如果不行,可我非要实现一个循环重复发生的操作,用什么函数来代替?
已解决! 转到解答。
修改时间 12-23-2009 01:38 AM
修改时间 12-23-2009 04:44 AM
修改时间 12-23-2009 07:40 AM
修改时间 12-23-2009 06:58 PM
修改时间 12-23-2009 07:09 PM
修改时间 12-23-2009 08:03 PM
您那种方式我了解了,但现在又有新的问题,如下图
像这种用一个stop控制的话,就无法随时停止了,这个问题还是没解决......
修改时间 12-23-2009 08:31 PM
In that case, you need to change the Stop Button's 'mechanical action' to Switch When Pressed
Create a local variable of it, and place it in the inner loop. That way, the Stop Button status is read while executing the inner while-loop.
修改时间 12-23-2009 09:11 PM
您太牛了,感谢感谢啊,不过此贴我还是保留未解决,以便有知道如何直接停止for循环的高人传授新的技巧~~
2天之后还未有人回复,我再封
再次感谢!!!
修改时间 12-23-2009 09:20 PM