[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
##############################################################################
###+-------+##################################################################
#+-| FLUSH |------------------------------------------------+#################
#| +-------+ The FLUSH command writes all database records |#################
#| associated with the current or specified alias |#################
#| that are stored in memory to disk |#################
#+----------------------------------------------------------+#################
##############################################################################
##############################################################################
#+--| Syntax |--------------+#################################################
#| [!<Alias>] FLUSH |#################################################
#+--------------------------+#################################################
##############################################################################
##############################################################################
##########+---| Description |--------------------------------------+##########
##########| FLUSH writes data from file buffers to disk. FLUSH |##########
##########| should be used when abnormal program termination is |##########
##########| possible, or during multitasking projects that use the |##########
##########| same data file. Normal termination of a program or an |##########
##########| explicit close of a database also writes data from the |##########
##########| buffers to disk. FLUSH enables memory buffers to be |##########
##########| written to disk without closing a database. |##########
##########+--------------------------------------------------------+##########
##############################################################################
##############################################################################
#########+--| Example 1 |-------------------------------------------+#########
#########| * Flush the database before sitting at a menu |#########
#########| * prompt, where the user may turn power off. |#########
#########| |#########
#########| !sales FLUSH |#########
#########| MENU TO idx && get menu selection. |#########
#########+----------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 2 |-------------------------------------------+#########
#########| * Flush database prior to running an external program.|#########
#########| |#########
#########| FLUSH |#########
#########| RUN "\initdbx" |#########
#########+----------------------------------------------------------+#########
##############################################################################
See Also:
CLOSE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson