Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!mips!dimacs.rutgers.edu!rutgers!cmcl2!adm!news From: CDCKAB%EMUVM1.BITNET@cunyvm.cuny.edu ( Karl Brendel) Newsgroups: comp.lang.pascal Subject: Re: FindFirst Message-ID: <26563@adm.brl.mil> Date: 15 Apr 91 20:45:16 GMT Sender: news@adm.brl.mil Lines: 44 In article <5467@mindlink.UUCP> Robert_Salesas@mindlink.uucp (Robert Salesas) wrote: >Actual Karl, the TP manual implies it works differently than it >does. Their examples even show the use of ARCHIVE when in fact >you'll get the same files whether you use the ARCHIVE bit or not. >Although there is nothing technically wrong with this, it does >confuse the matter by the implication that not including ARCHIVE >will exclude those files from the search. (First let me digress with an apology for having reposted two of Robert's articles in the guise of a reply. I apparently quit my reply rather than saving it, and uploaded the resulting file, comprising his two articles. Oh, how I hate it when others do that. ) Robert: The Turbo Pascal 5.X manual says about FindFirst: The _Attr_ parameter specifies the special files to include (in addition to all normal files). The FindFirst documentation has said essentially that same thing ever since the routine was introduced. The example was poorly chosen, and should have used Hidden, (SysFile?,) VolumeID or Directory to illustrate FindFirst's behavior re _Attr_. However, I've always found the statement quoted above to clearly describe the behavior, and I don't see that it "implies" anything other than what is stated. (A file is a "normal" file regardless of whether it has the Archive bit set.) Let's agree that you did not find the Turbo Pascal documentation clear, but that you understood the "msdos references" (mentioned in another article) and let it go at that. OK? Cheers-- --Karl +--------------------------------------------------------------------+ | Karl Brendel Centers for Disease Control | | Internet: CDCKAB@EMUVM1.BITNET Epidemiology Program Office | | Bitnet: CDCKAB@EMUVM1 Atlanta GA 30093 USA | | Home of Epi Info 5.0 | +--------------------------------------------------------------------+