home *** CD-ROM | disk | FTP | other *** search
- *******************
-
- FUNCTION Lookdate
-
- PARAMETERS _file
-
- * take the _file and the _date and write the _date
- * to the back end of the _file, makring the file with
- * the _date and a special code: ddddddddxxxxxSJSD
-
- IF PCOUNT() != 1
- RETURN(.F.)
- ELSEIF TYPE("_file") != "C"
- RETURN(.F.)
- ELSEIF !FILE(_file)
- RETURN(.F.)
- ENDIF
-
- PRIVATE _fhandle, _temp
-
- _fhandle = FOPEN(_file, 2)
-
- FSEEK(_fhandle, -6, 2)
-
- _temp = FREADSTR(_fhandle, 4)
-
- FCLOSE(_fhandle)
-
- RETURN( (_temp = "SJSD") )
-
- * End of File