Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!think.com!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!dkuug!diku!ballerup From: ballerup@diku.dk (Per Goetterup) Newsgroups: comp.lang.pascal Subject: Re: FindFirst Message-ID: <1991Apr10.134936.13981@odin.diku.dk> Date: 10 Apr 91 13:49:36 GMT References: <5419@mindlink.UUCP> Sender: news@odin.diku.dk (Netnews System) Organization: Department of Computer Science, U of Copenhagen Lines: 30 Robert_Salesas@mindlink.UUCP (Robert Salesas) writes: =>I'm having a problem with FindFirst in Turbo Pascal 6. I modified the List =>demo by exluding the ReadOnly flag in the attributes. This should not include =>readonly files, yet it does. Anyone have an idea why? Another related problem, maybe with the same cause: Try simply to search for directories using the 'Directory' attribute mask and you'll not only find directories but also close to everything else (I think, perhaps VolumeID's excluded). This is NOT directly a bug in TP because it also happens if you try the same in assembler! - A bug in DOS it seems! Perhaps Borland COULD have included a work-around in their code by simply checking the found file's attributes and search again if it didn't match... I do just that myself and it's not really a big bother, but still - it is SUPPOSED to work...! Hack on... Per. -- | Per Gotterup | "The most merciful thing in the | | Student, DIKU (Dept. of Comp. Sci.) | world, I think, is the inability | | University of Copenhagen, Denmark | of the human mind to correlate all | | Internet: ballerup@freja.diku.dk | its contents." - H.P. Lovecraft - |