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 close database and associated memo and index files http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 close               Close database and associated memo and index files
------------------------------------------------------------------------------
 Syntax
   close sAlias

 Arguments
   sAlias is the database alias to be closed.

 Description
   The close sAlias command closes the specified alias and associated index
   and memo files.

   At program termination (either caused by a quit command, or by returning
   from the main() function, all files are automatically closed before
   exiting to DOS.

   It is a good safety measure to keep files open only as long as necessary,
   so close files as soon as possible to make sure that file changes are
   physically written to the disk, and to free any allocated memory.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_close
   open sTest
   ? "Database open:", chkopen( sTest ) // prints .t.
   close sTest
   ? "Database open:", chkopen( sTest ) // prints .f.
   endproc

   proc main
   Test_close()
   endproc

See Also: flush open

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