CLEAR ALL Command Releases Objects Added to _SCREEN

Last reviewed: October 29, 1995
Article ID: Q138648
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 reference words: 3.00 VFoxWin
KBCategory: kbprg
KBSubcategory: FxprgGeneral


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.

Last reviewed: October 29, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.