Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove Controls @ Runtime
Message
De
20/09/2002 13:55:49
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
 
 
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00702812
Message ID:
00702869
Vues:
10
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform