jonnydexter
Registered User.
- Local time
- Today, 14:03
- Joined
- Aug 31, 2012
- Messages
- 21
HI
how can i add an object ( in this case a textbox) to a collection by using its name ?
- this adds the object day1 to the collection ok.
but i want to be able to add multiple objects using the count value of a loop
strcontrol needs to add the object so i can reference it properly.
thanks
how can i add an object ( in this case a textbox) to a collection by using its name ?
Code:
colmycollection.add me.day1
but i want to be able to add multiple objects using the count value of a loop
Code:
dim strcontrol as string ' or should it be object ?
for i = 1 to 10
strcontrol = "day" & i
colmycollection.add me.strcontrol
next i
thanks