The information in this article applies to:
SUMMARY
This article discusses a recommended series of commands to clean up the
Visual FoxPro Environment when you are performing one of the following:
MORE INFORMATION
A Visual FoxPro application needs to accomplish the following items in
order to guarantee a clean Visual FoxPro environment:
The major tasks that should be accomplished during the cleanup process are:
Details on how to accomplish these steps are outlined below. How to Close Down All Operations and Return FoxPro to Its State at StartupTo close down all operations and return Visual FoxPro to its state at startup, issue the following commands, in order, in the Command window:
The CLEAR ALL command removes all objects from memory which, in turn,
closes all private data sessions and cursors. The CLOSE ALL command closes
all databases, tables, and cursors in data session 1, which is the default
Visual FoxPro data session. Then the CLEAR PROGRAM command clears the
compiled program buffer of the most recently executed programs, and it
forces Visual FoxPro to read the programs from disk, rather than from the
program buffer.
Special Consideration: Cleaning Up During TransactionsIf transactions are in progress, use the END TRANSACTION command for each level of transaction before issuing the CLEAR ALL, CLOSE ALL, and CLEAR PROGRAM commands.Special Consideration: Cleaning Up During Buffered UpdatesIf buffered updates are in progress, use either the TABLEUPDATE() or TABLEREVERT() functions for each cursor with buffered updates before issuing the CLEAR ALL, CLOSE ALL, and CLEAR PROGRAM commands.Additional query words: Cleanup Code
Keywords : kbnokeyword kbVFp300 kbVFp500 kbVFp600 |
Last Reviewed: August 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |