举报
ContinueCase executes the next case, it does not continue the switch/select or run any conditionals. If you want all cases to run use three separate If's or something to that effect.
如果表达式(第一个)为真则执行从下一行开始一直到下一个 Case 或 EndSelect 为止的所有语句.如果有多个Case表达式都成立则只执行第一个Case语句.
Local $a = 1 Select Case $a = 1 ContinueCase ;==> 跳转 MsgBox(0,0,1) ;这个永远不会执行,因为在ContinueCase时已经跳转了 Case $a = 2 ;<== 不管条件如何,如果Case $a=1 成立,那这个肯定也被执行 MsgBox(0, 0, 2) Case $a > 0 MsgBox(0, 0, 0) EndSelect
查看全部评分
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-11-6 17:16 , Processed in 0.060330 second(s), 15 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2025 Discuz! Team.