Solved

Learn all the loops in vb.net

Posted on 2012-04-02
6
327 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with solving error related to resources file 4 47
VB.NET 1 21
start a process from a service 3 21
Winform Module - What is the ASP.Net equiv 2 19
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

786 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