Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Controls At Runtime
Message
 
To
19/04/2002 14:14:00
General information
Forum:
Visual Basic
Category:
ActiveX controls
Miscellaneous
Thread ID:
00645508
Message ID:
00653306
Views:
30
Ok, I have controls being added using Load()

Now I want to remove controls. So I do:


Unload cmdButtons(5)


I have various places in my code where I loop through the
control array:


dim iButton as Integer
For iButton = 0 to cmdButtons.Count - 1

   cmdButtons(iButton).Visible = True

Next


The problem is that even though the control has been unloaded,
IsNull and IsObject still show them as ojbects. The Visible line
in the loop fails for buttons that have been removed.

How do I know if an element in the control array has a valid
object in it?

Thanks
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform