Super_Grover
Active member
- Joined
- Apr 7, 2010
- Messages
- 32
- Programming Experience
- Beginner
Hi al!
I've been lurking here for some time and finally registered en now posting.
This is my first question which I can't find the answer for. Sorry in advance if this is too easy to ask or too n00b...
Anyway, I'd like to refer to 12 checkboxes on my form, "CBOX_mnth1....CBOX_mnth12", by a variable. So I'd like to loop through 1..12 and assigning the number after the text "CBOX_mnth". This together would make the controlname, like CBOX_mnth7 in case of x=7.
I hope this is a bit understandable, for Englisch is not my native language.
I wanna do something like this:
(the {..} are from another language and used to assign a variable as controlname, which is axactly what I'm after in VB.net)
Dim ls_month As String
For x = 1 to 12
ls_month = "CBOX_mnth" & Convert.ToString(x)
IF {ls_month}.checked = true then
'do something
End if
END
Thanks in advance for your help!
I've been lurking here for some time and finally registered en now posting.
This is my first question which I can't find the answer for. Sorry in advance if this is too easy to ask or too n00b...
Anyway, I'd like to refer to 12 checkboxes on my form, "CBOX_mnth1....CBOX_mnth12", by a variable. So I'd like to loop through 1..12 and assigning the number after the text "CBOX_mnth". This together would make the controlname, like CBOX_mnth7 in case of x=7.
I hope this is a bit understandable, for Englisch is not my native language.
I wanna do something like this:
(the {..} are from another language and used to assign a variable as controlname, which is axactly what I'm after in VB.net)
Dim ls_month As String
For x = 1 to 12
ls_month = "CBOX_mnth" & Convert.ToString(x)
IF {ls_month}.checked = true then
'do something
End if
END
Thanks in advance for your help!