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