Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>f_isdbf() - check if a file is a dbase iii dbf file</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     f_isdbf() - check if a file is a dBASE III DBF file
  Usage:    <logical> = f_isdbf(<DBF_file>)
  Params:   string <DBF_file> - filename to check
  Returns:  .T. if the file is a dBASE III file, otherwise .F.

 ---------------------------------- Example ---------------------------------

                 wait "Enter filename to use:" to fname
                 if .not. f_isdbf(fname)
                      print(0,0,fname+" is not a dBASE file!")
                 else
                      use (fname)
                 endif

  Note:     Any file that has either an 83h or a 03h as the first byte
            in the file can be mistaken for a dBASE III file.


See Also: f_ndxkey() f_recsize() f_lupdate() f_header() ferror()

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