Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

An example Application of for Loop in VB language

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "the example application of VB language for cycle". In the daily operation, I believe that many people have doubts about the example application of VB language for cycle. The editor has consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "the example application of VB language for cycle". Next, please follow the editor to study!

Knowledge objectives of this section:

Enter a number in the text box, click the output button, and print out the five-pointed lattice square on the form. Experience the power of the double for cycle.

Effect picture

The format of the for loop:

Declare a custom variable I

For initializes the last value of the custom variable I to variable I step step size

Here is the code to enter the loop

Next custom variable I

For example:

Dim i as integer

For iTunes 0 to 10 step 1

Print i

Next i

Results:

0

one

...

ten

Conclusion:

Initial variable

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report