Solved

Learn all the loops in vb.net

Posted on 2012-04-02
6
317 Views
Last Modified: 2012-06-27
Hi,

I would like to learn all the available loops in VB.net.

Please do provide me with a link or links that teaches all the loops from the basic to intermediate to the very advance.

Thanks in advance.
0
Comment
Question by:baabaa_nl
6 Comments
 
LVL 3

Expert Comment

by:Jofnn
ID: 37796286
Hi,

A quick search in Google (or similar search engine) will give you an abundance of suggestions etc.  One such search is https://www.google.co.uk/#q=vb.net%20loops%20tutorial which should give you a lot of things to work on.

Another option, is to search through ExpertsExchange for previous questions and/or posts from Experts.

I hope you find what you need!

Jonathon
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 37796363
0
 

Author Comment

by:baabaa_nl
ID: 37796664
hi CodeCruiser,

could you please list me all the names of the loops available in the vb.net language.

Thanks in advance
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37797061
I have listed the names and a link to example in my comment above.
0
 

Author Closing Comment

by:baabaa_nl
ID: 37797095
I was expecting "do until loop" too, but I just now realized that it is part of java and not in vb.net.


Thank  You
0
 
LVL 40
ID: 37799525
For and For Each have been presented. But I would add my personal touch to the different While and Until loops.

Do Until ... Loop is there, as well as Do Loop ... Until but I do not recommend using those. Neither would I recommend using the Do Loop ... While.

Do While ... Loop and While ... End While do the same thing, and I would suggest that you stick to one of those.

You can do anything in a While loop, just by setting the proper condition.

As an example, While x>=10 is the same as Do Until x<10.

Some programmers use both While and Until, as well as the Do ... Loop  While/Until (you are sure to pass at least once in the loop since the condition is at the end) and Do While/Until ... Loop (might not go in at all if the condition is true on the first pass). I do a lot of code review and have found out that programmers that mix the different conditional loops often do mistakes because they are in one kind of loop but code the condition for another one.

Programmer who always use While ... End While do not tend to do that type of mistake because they always use the same logic to prepare their loops. They have one way of looping instead of four. And I repeat, you can do the equivalent of all the 4 types of loops with While ... End While just by using the proper condition.

Another type of loop is recursion, a method that calls itself. Some would not consider that a loop because there is no keyword associated with it, but since it is a way to repeat the same operation many times, I personally see that as a loop.

One can also create some kind of loop by using a Timer.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now