home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- FUNCTION Length_dt
-
- PARAMETERS _aarray, _adate
-
- IF PCOUNT() = 0
- RETURN(-1)
- ELSEIF PCOUNT() = 1
- _oldest = .T.
- ELSEIF TYPE("_aarray") != "A"
- RETURN(-1)
- ENDIF
-
- * If there are no date elements in the array, the value returned will
- * be 0, otherwise, the oldest date will be returned
-
- RETURN(IF(EMPTY(LONG_DATE(_aarray, _adate)), CTOD(" / / "), _aarray[LONG_DATE(_aarray, _adate)]))
-
- * End of File