Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RemoveObject... doesn't !!!
Message
From
16/04/1998 05:57:00
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00092409
Message ID:
00092438
Views:
26
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform