Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Releasing objects added to the screen
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01534450
Message ID:
01534453
Views:
103
Likes (1)
>I have created an object that I place on the screen... ie I use _screen.addobject
>How do I get the object to release. I know clear all works, but that is kind of drastic, don't you think?
>Mike

Funny, I actually showed how to add objects to the _screen desktop from the Class Browser in my new screencast, and mentioned how to use _screen.RemoveObject() as Tore replied with.

If you don't know the name of the object, you can use this trick. Place and leave the mouse cursor over the object on the desktop you want to remove, then run this code in the Command Windows:

x=SYS(1270)
_screen.RemoveObject(x.Name)
x=.null.

If you do this often, you can put the code above in a PRG, then set an ON KEY LABEL key to run that PRG - hover the mouse over the object, then press the hot-key to remove it.
Previous
Reply
Map
View

Click here to load this message in the networking platform