Loop

Submitted by: 
Learn on how to create a Count Vowels and Consonant in a Sentence using JavaScript. A simple JavaScript program that can identify the vowels and consonant in a sentence. This can be help when you want to count the vowels and consonant.
Submitted by: 
Introduction: Welcome, this page will teach you how to create a For Each Loop in Java. What is a For Each Loop? A For Loop is very similar to a For Loop within Java except it only requires two arguments and instead of referring to the current value of the loop through the index, we have an actual item. When are For Each Loops used? For Each Loops are used for iterating through a list of values or...
Submitted by: 
Introduction: This page will teach you about the For loop in Java. What is the for loop? The for loop is very useful in many programming languages. It is a simple way to re-run a certain script or part of code multiple times depending on integer values. How do I create a for loop? First you will need to decide five things to create your for loop: 1. The variable name, this will be the reference...
Submitted by: 
In this tutorial I will teach you how to get the name of a specific TextBoxes by using For Each Loop in VB.Net . This method will determine what are the names of your TextBoxes that you drag it on the Form. You will be able to find out the specific name of the TextBox because it will be seen in each TextBoxes. So let’s begin: Open Visual Studio and create a new Project. Drag all the TextBoxes and...
Submitted by: 
This time, I will teach you how to determine the size of the TextBox by using ForEach Loop in Visual Basic 2008 . With this, it will be easy for you to determine what will be the sizes of the TextBox without specifying each of it. And the sizes will automatically appear in each Textboxes. Let’s begin: Open Visual Basic 2008 , create a new Windows Application and drag the TextBox and A Button in a...
Submitted by: 
In this tutorial I will teach you how to get X/Y Point of a Textbox Using For Each Loop in Visual Basic 2008 . With this you can easily get the location of a specific Textbox. I used the Foreach Loop so that you don’t have to specify what is the name of your Textbox. All you have to do, is to get the type of it. Let’s begin. Open Visual Basic 2008 , create a new Windows Application, drag the...
Submitted by: 
A do while loop is a control flow statement that allows code to be executed once based on a given boolean condition. In visual basic, you can use do while loop structure when you want to repeat a set of statements of an indefinite number of times, until a condition is satisfied. Syntax: Do While condition [ statements ] [ Continue Do ] [ statements ] [ Exit Do ] [ statements ] Loop The Do while...
Submitted by: 
One way to loop over the elements in an array using visual basic is to use For each loop. Because it automatically loops over all elements in the array or collections. And it works well when you can associate each iteration of a loop with a control variable and determine that variable’s initial and final values. And you don’t have to worry about getting the indices in order to get all the...
Submitted by: 
What is a For Loop? A For Loop is used to iterate through a script a certain amount of times. Personally, I use it to check conditions for each item within a group, list or array. How do I use a For Loop? To create a For Loop you first need to decide how many times you want a script to run. You also want to create a script which will be ran. Once you have decided on both of those options you will...
Submitted by: 
There are times that you want to loop between two dates in PHP. If you have, for example, formatted the date like m/d/Y, you cannot simply use it in while loop statement. Before you can loop between two dates in PHP, you need to convert it first to Unix timestamp using the strtotime function. Here’s an example of how to do it: $startDate = strtotime ( $checkin ) ; $endDate =...

Pages