In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces the knowledge of "how to use VB.NET Do/Loop to achieve sentence loop". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
If VB.NET is used skillfully, it can bring us a lot of unexpected surprises. There are many programming methods that require us to slowly touch the use of them in practice. When we don't know the number of cycles, we can also use VB.NET Do/Loop for loops. The role of VB.NET Do/Loop is very similar to While/ End While. Its syntax is:
Do {While | Until} condition
[statements]
[Exit Do]
[statements]
Loop
Among them, While and Until after Do are optional. When using While, the loop body is executed when the latter conditions are met; when using Until, the loop body is exited when the latter conditions are met. There is another way to write VB.NET Do/Loop:
Do
[statements]
[Exit Do]
[statements]
Loop {While | Until}
Condition
The result of this writing is that the loop body is executed at least once.
Case 2. 9 (02-09.aspx) showed three greetings.
< % Dim intI IntI=0 Do Until intI>two
Response.Write
("Hello! Cindy!" &
"
< br>")
IntI=intI+1
Loop
% >
As you can see, there is not much difference between the execution of VB.NET Do/Loop and that of While/End While. The user can also change the Until in line 4 of the above example to While and change the following conditions accordingly to achieve the same function.
This is the end of "how to use VB.NET Do/Loop to implement a statement loop". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.