vb 重复执行一条语句怎么编写

来源:百度知道 编辑:UC知道 时间:2024/06/02 19:27:35

要无限循环可以这么写:
while 1=1
<这里写你的语句>
wend

不希望无限循环,希望执行n次后停下来的,得这样写:
for a=1 to n <n代表要执行的次数>
<这里写你的语句>
next

Do While (True)
循环语句
Loop

Dim a
For A=0 To 循环次数
循环语句
Next A

do while true
<语句代码>
loop