Mirage Source http://miragesource.net/forums/ |
|
VB6 - Basics 3 - You're looping crazy! http://miragesource.net/forums/viewtopic.php?f=211&t=5890 |
Page 1 of 1 |
Author: | Jacob [ Mon Jun 29, 2009 1:12 pm ] |
Post subject: | VB6 - Basics 3 - You're looping crazy! |
Looping in VB6: There are 2 different loop types in VB6. Code: For ... Next Code: Do ... Loop Examples: Code: Dim i as Long Dim l as long For i = 0 to 10 l = l + 1 Next For the For ... Next, you can also do Code: Dim i as Long Dim l as long For i = 0 to 10 l = l + 1 Next i Code: Dim i As Long Do Until i = 10 i = i + 1 Loop Code: Dim i As Long Do While i < 100 i = i + 1 Loop Code: Dim i As Long Do i = i + 1 Loop While i < 100 Project This project we will be using a loop to count the number of specific characters in a string. The user will input a string and a letter they want counted. You must output how many times that letter is used in the string. Display the output. Overview
Notes
|
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |