This is generally a sign that another object hasn't been released, thus preventing the form from being released. Check for other object references lingering around.
>I just starting working with vfp6 coming from vfp3 and this never happened to me before. When i have a form i need to release from a menu, i make sure the object is there and if so i issue objectname.release() command. The form is gone and every thing is okay. My problem is when i release a form containing a grid that has focus, the form is released but the image remains on the screen. Actually, a new object remains with a different name. In the command window I have gotten the remaining object's name using the _screen.activeform command and issued the newobjectname.release() command again. This still does not work. With the new objectname i can do anything i want to the object and its controls but, release it. As long as any control has focus that is not a grid, there are no problems in releasing forms. I am lost and need a some advise.
>
>My code in the menu procedure looks something like this:
>if type('objectname')='O' and !isnull(objectname)
> objectname.release()
>endif
>
>Thanks.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only