vb中if语句的嵌套

亲爱的亲爱 1个月前 已收到1个回答 举报

情美的伤人 4星

共回答了46个问题采纳率:90.2% 评论

随便嵌套,只要没有交叉就可以,具体的有下面几种:

ifxxxxxthen

fori=atob

……

nexti

……

endif

fori=atob

ifxxxxxthen

……

endif

nexti

ifxxxxxthen

do

……

loopwhilexxxxx

……

endif

其他比如

ifxxxxthen

whilexxxx

endif

wend

是不允许的,因为出现了语句交叉

11小时前

38
可能相似的问题
Copyright © 2024 微短问答 All rights reserved. 粤ICP备2021119249号 站务邮箱 service@wdace.com