Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing objects
Message
From
07/01/1999 12:05:25
 
 
To
06/01/1999 10:28:08
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00172935
Message ID:
00173606
Views:
36
Hi guys,


I noticed something about RemoveObject. If you issue RemoveObject and AddObject (with the same name) in sequence, you'll find that AddObject fails because the object still exists :-

.RemoveObject('abc')
.AddObject('abc','cClass')

This seems to happen in VALIDs. The RemoveObject is called, but not until all the VALID code is executed, that the RemoveObject (from FORM) fires. It's like the VALID logged a message with the main VFP event handler to RO, then the VALID code finishes furst, then only the message is handled in the FORM's event loop.

I hope this can shed some light on your problem.
Kenneth.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform