Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RemoveObject... doesn't !!!
Message
De
16/04/1998 05:57:00
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
16/04/1998 02:13:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00092409
Message ID:
00092438
Vues:
27
>I have a container class with 2 - 20 label object in it that I can't seem to get rid of... I'd like to remove the container from the form and re-build from scratch but when I use REMOVEOBJECT() then ADDOBJECT() I get the message "An object with that name already exists"... What would prevent removeobject from working?
>
>TIA
Hi Larry,
I never faced removeobject() fail yet. Could that be you're referencing wrong object ? ie:
* Form has a container named myContainer with labels Label1...Label20 
* Form also has a Label - label1
thisform.removeobject("myContainer")
thisform.addobject("myContainer","container")
thisform.myContainer.addobject("Label1","Label")
thisform.addobject("Label1","Label")  && This one would produce error - form already has a "label1" object
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform