Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove Controls @ Runtime
Message
From
20/09/2002 13:55:49
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
 
 
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00702812
Message ID:
00702869
Views:
9
Hi,
I tested your code and I does set the control to nothing..BUT


Dim WithEvents DYN_cmdText As VB.TextBox

Dim ctl As Control
For Each ctl In frmQuoteRollover.Controls
If ctl.Name = "TL3" Then
debug.print ctl.Name + " IN THE CONTROL IF FIND!"

Set DYN_tdbGenericAccessories = Nothing

End If

Next


Set DYN_cmdText = Controls.Add("VB.TextBox", "TL3", SSFrame7)

The line above still generates an error. It seems to set DYN_cmdText to nothing.. but the above SET statement generates
the error: "Control TL3 already exists"

I also tried Set TL3 = Nothing.. that doesnt work either
Any ideas?

Thanks

Al
Previous
Reply
Map
View

Click here to load this message in the networking platform