home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pascal / 8021 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  1.6 KB

  1. Path: sparky!uunet!wupost!waikato.ac.nz!canterbury.ac.nz!cantva!cctr132
  2. Newsgroups: comp.lang.pascal
  3. Subject: Re: FindFirst
  4. Message-ID: <1993Jan11.134742.1@csc.canterbury.ac.nz>
  5. From: cctr132@csc.canterbury.ac.nz (Nick FitzGerald, PC Software Consultant, CSC, UoC, NZ)
  6. Date: Mon, 11 Jan 1993 00:47:42 GMT
  7. Reply-To: Nick FitzGerald <n.fitzgerald>
  8. References: <726632204.AA00152@f262.n620.z3.fidonet.org>
  9. Organization: University of Canterbury, Christchurch, New Zealand
  10. Nntp-Posting-Host: cantva.canterbury.ac.nz
  11. Lines: 24
  12.  
  13. In article <726632204.AA00152@f262.n620.z3.fidonet.org>,
  14. tp923021@jarrah.canberra.edu.au (ben elliston) writes:
  15. > I have stumbled across a problem with the FindFirst procedure ..
  16. >   FindFirst('C:\*.*', Hidden, SearchInfo);
  17. > Where SearchInfo is a SearchRec variable and I am using the DOS unit.
  18. > It seems FindFirst (when used in conjuction with the FindNext procedure),
  19. > finds all files matching the wildcard specification, but not the attribute
  20. > specification.
  21.  
  22. This is a FAQ and as with many FAQ's the answer is RTFM.  In the TP55
  23. Reference I have, on p.258 is found:
  24.  
  25. "The -Attr- parameter specifies the special files to include (in
  26. addition to all normal files)."
  27.  
  28. OK -- maybe not a good example of drawing out the implications of the
  29. implementation, but from what Ben says it works as documented, so he has
  30. discovered a feature, -not- a bug.
  31.  
  32. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  33.  Nick FitzGerald, PC Applications Consultant, CSC, Uni of Canterbury, N.Z.
  34.  n.fitzgerald@csc.canterbury.ac.nz  TEL:+64(3)364 2337, FAX:+64(3)364 2332
  35.