|
-
Nov 19th, 2006, 10:25 PM
#1
Thread Starter
Member
[RESOLVED] VB and control arrays.
I know control arrays are gone. I don't like that fact, but am choosing to live with it and learn VB 2005. Anyway, I have a program from VB6 that I need to convert. It has 128 control array labels and 128 control array buttons.
I DO NOT want to create these controls at run time. They're already on the form.
1. Do I have to list each of the HANDLES separately, like ....HANDLES Label1.click, Label2.click, Label3.click, .... Label128.click?
2. I figure the easiest way to reference them by an index is to Dim MyLabel() as label = {me.Label1, me.Label2, ..., me.Label128}. Again, do I need to list all 128 individually or is there an easier way?
3. When I try to create a label array like this, even if I make it public and put it in the declarations section of the form, I still can't access it from each SUB procedure inside that form. Do I need to declare it inside each SUB?
Greg
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
|