【超實用VBS教程】第三課:無限循環(huán)彈窗整蠱好友!

注釋:單引號'
循環(huán):
舉例:從一到十
dim i
i=1
while i<11
msgbox i
i=i+1
wend
while循環(huán):
while 表達(dá)式
執(zhí)行內(nèi)容
wend
dim i
for i=1 to 10
msgbox i
next
for循環(huán):
for 起始 to 終止
內(nèi)容
next
do loop循環(huán)(無限循環(huán)):
do
內(nèi)容
loop
dim i
i=1
do
msgbox i
i=i+1
loop until i>10
do loop until:
do '在此也可以加until,在此加了后面就不用加了,在這里加會先判定條件,后面加會先執(zhí)行代碼在判定條件
內(nèi)容
loop until 表達(dá)式
標(biāo)簽: