Visual Basic lets you try the Until keyword in Do [While] Loops until a certain condition is true. The Until keyword can be used at the top or the bottom of a Do [While] Loop to test a condition (similar to the While Loop).
Check this example below
Do
InputName = InputBox("Enter item or type Finish to quit.")
If InputName <> "Finish" Then Print InputName
Loop Until InputName = "Finish"
Based from the book Step by Step Microsoft Visual Basic
No comments:
Post a Comment