>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.