home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a075 / 1.img / TOOLKIT1.EXE / SST20.PRG < prev    next >
Encoding:
Text File  |  1989-08-08  |  481 b   |  21 lines

  1. ********************
  2.  
  3. FUNCTION Length_dt
  4.  
  5.    PARAMETERS _aarray, _adate
  6.  
  7.    IF PCOUNT() = 0
  8.       RETURN(-1)
  9.    ELSEIF PCOUNT() = 1
  10.       _oldest = .T.
  11.    ELSEIF TYPE("_aarray") != "A"
  12.       RETURN(-1)
  13.    ENDIF
  14.  
  15.    * If there are no date elements in the array, the value returned will
  16.    * be 0, otherwise, the oldest date will be returned
  17.  
  18.    RETURN(IF(EMPTY(LONG_DATE(_aarray, _adate)), CTOD("  /  /  "), _aarray[LONG_DATE(_aarray, _adate)]))
  19.  
  20. * End of File
  21.