|
-
Nov 19th, 2000, 05:40 AM
#1
Thread Starter
Junior Member
Hi
I use this declaration so I can create a new object in run time.
Private WithEvents Carbon As Label
_____
for carbonnumber=1 to 16
Set Carbon = Controls.Add("vb.label", "Carbon" & Carbonnumber, picturebox1)
next carbonnumber
Now I would like to print the caption of the label with name "carbon16", but I don't know how to get its caption.
How could I create an array of objects in run time?
Thanks for your help.
Jure
-
Nov 19th, 2000, 05:54 AM
#2
Hyperactive Member
It'd be a lot easier with an array.
"One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig
[email protected]
"but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.
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
|