|
-
Jan 10th, 2000, 12:12 PM
#1
Thread Starter
Addicted Member
I have set controll textboxes, eg.
DAY(0).text = "Hello"
DAY(1).text = "Hello"
DAY(2).text = "Hello"
and so on..........
Is there a way I can take the entire DAY and instead of having to put all the extra lines of code, just use one line to represent all the DAY s? Like having
DAY.text = "Hello"
and all the Day.texts change?
I appreciate any help. Thanks
-
Jan 10th, 2000, 12:22 PM
#2
You could use a FOR.. EACH Loop, ie.
Code:
Private Sub Command1_Click()
For Each TextBox In txtDay
TextBox.Text = "Hello"
Next
End Sub
This would set the Text Property of all the Textboxes in the txtDay Control Array to "Hello".
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
Jan 10th, 2000, 12:23 PM
#3
Thread Starter
Addicted 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
|