Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - close all close all open files http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 close all           Close all open files
------------------------------------------------------------------------------
 Syntax
   close all

 Arguments
   None.

 Description
   The close all command closes all files, including databases, indexes,
   and any file opened with the low-level file functions, like fopen() or
   fbopen().

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_closeall
   open "stest.dbf" alias sTest index sIdxLN, sIdxB
   set alternate to "tmp.txt"
   set alternate on
   ? "Database open:", chkopen( sTest ) // prints .f.
   close all        // close all databases, indexes and alternate file
   ? "Database open:", chkopen( sTest ) // prints .f.
   type "tmp.txt"                       // show contents of alternate file
   erase "tmp.txt"                      // delete alternate file
   endproc

   proc main
   Test_closeall()
   endproc

See Also: close databases

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson