192 CHAPTER 7 (Abyss web server) ITERATIVE PROCESSING Figure 7-3.
192 CHAPTER 7 ITERATIVE PROCESSING Figure 7-3. Using a Do Loop to populate a PopupMenu, as seen on Mac OS X The While Wend Loop The While Wend loop provides the capability to execute one or more code statements, as long as an evaluated condition remains True. The following shows the syntax of the While Wend loop. While Condition Statements Wend Condition is a placeholder representing any valid Boolean expression, as the following example shows. Dim intCounter As Integer = 1 While intCounter <=10 EditField1.Text = EditField1. Text + Str(intCounter) + " " + EndOfLine intCounter = intCounter + 1 Wend In this example, a While Wend loop is used to populate an EditField control with ten numbers, each of which is displayed on a different line. The While Wend loop tests a condition at the beginning of the loop. The While Wend loop is similar to the Do Until loop, but it lacks the Do Until loop s flexibility. Specifically, the While Wend loop does not provide the option of moving the conditional text to the end of the loop. You do not see this form of loop used often in REALbasic programs.
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.