KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q138648: CLEAR ALL Command Releases Objects Added to _SCREEN

Article: Q138648
Product(s): Microsoft FoxPro
Version(s): WINDOWS:3.0
Operating System(s): 
Keyword(s): 
Last Modified: 11-FEB-2000

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Visual FoxPro for Windows, version 3.0 
-------------------------------------------------------------------------------

SUMMARY
=======

After adding objects to _SCREEN, you can use a CLEAR ALL command to remove the
objects from memory. The CLEAR ALL command removes all objects, variables, and
controls from memory regardless of whether they are scoped to a form or to the
screen.

MORE INFORMATION
================

If a form is open when you issue a CLEAR ALL command from the Command window,
the form and all of its objects disappears. If an object is scoped to the screen
with the _SCREEN.ADDOBJECT() command, the object will be cleared from memory,
but the screen will still be available. You can use the _SCREEN.REMOVEOBJECT()
command to remove objects from the screen, but if you use the CLEAR ALL command,
the objects that were scoped to the screen will have to be recreated. These
objects should be created in a procedure or program (.prg) file, so that they
can be recreated after the CLEAR ALL command is issued.

Additional query words: VFoxWin

======================================================================
Keywords          :  
Technology        : kbVFPsearch kbAudDeveloper kbVFP300
Version           : WINDOWS:3.0

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.