Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_isdbf() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_ISDBF()

 DESCRIPTION

 The C_ISDBF() function is used to determine if a specified file is
 a dBASE/Clipper database file.

 NOTES

 The file to check should be closed before calling this function.

 SYNTAX

 C_ISDBF(file_name [,network])

 PARAMETERS

 file_name (C) is the name of the file to check, including
 extension.  A drive and directory name may also be specified with
 the file name.  Note that C_ISDBF() only searches the current drive
 and directory for the specified file.  If the file is in another
 drive and/or directory the complete path name must be explicitly
 specified.

 network (L) indicates whether or not the program is running on a
 network.  If the program is running on a network pass true (.T.) so
 the file can be opened with the proper share access, otherwise pass
 false (.F.).  If network is not specified, the default of false
 (.F.) is used.

 RETURNS

 C_ISDBF() returns true (.T.) if the specified file is a
 dBASE/Clipper database file, or false (.F.) if it is not.

 EXAMPLES

 dbfname = "TEST.DBF"

 if c_isdbf(dbfname)           && If file is a database file,
   c_secure(dbfname, .t.)      && lock it so it can not be opened
 endif
 ...
 ...
 ...
 if c_isdbf("c:\files\main.dbf")      && If file is a database file
   use c:\files\main                  && open it
 endif


See Also: C_SECURE() C_ISDBT() C_SETDBT() C_HANDLES() C_SETHANDLES()

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