|
-
February 19th, 1999, 07:46 AM
#1
Control arrays
I have a problem with control arrays, which I would be interested to see if anyone has an answer for.
If I have a control array of 'UIElement' controls I can access their individual positions as follows:
UIElement(0).Left
UIElement(0).Top
etc.
However I can't do the following:
dim uie as UIElement
set uie = UIElement(0)
and then access the position of that UIElement:
uie.left
uie.top
this will cause an error 'Method or data member not found' because the individual UIElement no longer has these properties. The only way to access these (and other) properties is through the control array.
I have two questions, one is there a workaround for this? And two Don't you think this is a daft way for VB to behave?
Rupert
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
|