home *** CD-ROM | disk | FTP | other *** search
- * Function: FILETIME
- * Author..: Richard Low
- * Syntax..: FILETIME( <expC> )
- * Returns.: Character time string of <filename> from directory entry.
-
- FUNCTION FILETIME
- PARAMETERS p_fname
-
- IF PCOUNT() = 1
- *-- set up array to hold the file time from ADIR()
- DECLARE f_ftime[1]
-
- *-- call ADIR to check filespec given and fill time array
- IF ADIR( p_fname, '', '', '', f_ftime ) = 1
- *-- return time string if all is well
- RETURN f_ftime[1]
- ENDIF
- ENDIF
- *-- otherwise, return a null string
- RETURN ''