找回密码
 加入
搜索
查看: 1549|回复: 6

请问While...Wend的含义与作用

[复制链接]
发表于 2009-1-15 09:51:53 | 显示全部楼层 |阅读模式
请高手用通俗的方法解释一下While...Wend的含义及作用,AU3帮助里都是英文看不懂

注意

While...WEnd statements may be nested.
The expression is tested before the loop is executed so the loop will be executed zero or more times.
To create an infinite loop, you can use a non-zero number as the expression.

[ 本帖最后由 958806868 于 2009-1-15 17:50 编辑 ]
发表于 2009-1-15 13:11:00 | 显示全部楼层
While 表达式
执行语句
WEnd

While...WEnd statements may be nested.
翻译:While...WEnd语句是可被嵌套的。
The expression is tested before the loop is executed so the loop will be executed zero or more times.
翻译:循环执行之前要先测试表达式是否为真,因此循环可能执行0到更多次。
To create an infinite loop, you can use a non-zero number as the expression.
要创建一个无限循环,你可以使用一个非0的数字作为表达式。
发表于 2009-1-15 14:16:26 | 显示全部楼层
最主要的作用是维持你的 GUI 界面的寿命
 楼主| 发表于 2009-1-15 14:56:43 | 显示全部楼层
原帖由 manson 于 2009-1-15 13:11 发表
While 表达式
执行语句
WEnd

While...WEnd statements may be nested.
翻译:While...WEnd语句是可被嵌套的。
The expression is tested before the loop is executed so the loop will be executed zero or  ...

多谢回答
 楼主| 发表于 2009-1-15 16:03:12 | 显示全部楼层
通过解释While...WEnd 是可被嵌套语句,循环语句

请问While与Wend这两个单词翻译过来分别是什么意思?

是不是  在一定时间------------------返回  的意思
发表于 2009-1-15 16:12:23 | 显示全部楼层
while 当

wend 这个循环结束

当while 后面的表达式成立的时候 就进入 这个 while循环  直到wend时  再返回检查 while后面的表达式是否成立 如果成立 继续循环

你可以理解为一个无限的 if endif
 楼主| 发表于 2009-1-15 17:45:32 | 显示全部楼层
明白了,谢谢sxd和楼上的2位朋友
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-19 17:11 , Processed in 0.075641 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表