求VB的循环语句

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/11 00:19:52

求VB的循环语句

for 语句
for i=n1 to n2 [step n3]
...[exit for]
next i
对于对象集合有个特殊的For语句
比如Text控件数组Text1(n)
dim tt as TextBox
For each tt in Text1
tt.text=""
next
Do语句
Do exp1
...[exit Do]
loop
exp1 可以是 while exp2 或者 Until exp3
exp1 可以放在 loop 后面
while 语句
while(exp1)
...
wend