|
-
Nov 11th, 2003, 07:00 PM
#1
Thread Starter
New Member
Coding Looping
I am having trouble coding the Do...While...Loop statement. The program is supposed to loop through the labels and text boxes to count how many there are, then it has to add the value that is inside the labels and text boxes. Having four seperate buttons for how many labels, how many text boxes, the value inside the labels, and the value inside the text boxes. I was wondering if you had any advice that can help me, thank you.
-
Nov 11th, 2003, 08:03 PM
#2
Frenzied Member
why not using For Each Next statment instead of that.
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Nov 12th, 2003, 10:02 AM
#3
I wonder how many charact
You will need to use TypeOf
VB Code:
Dim Ctrl As Control
For each Ctrl in Me.Controls
If TypeOf Cntrl is Label Then
'do whatever
ElseIf TypeOf Cntrl is TextBox Then
'do something else
End If
Next
-
Nov 15th, 2003, 10:03 AM
#4
Thread Starter
New Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|