home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 8,899 of 10,840   
   J French to mynamehere@comcast.net   
   Re: Check Path   
   22 Oct 04 09:05:16   
   
   From: erewhon@nowhere.com   
      
   On Thu, 21 Oct 2004 18:19:23 -0700, "Steve Gerrard"   
    wrote:   
      
   >   
   >"J French"  wrote in message   
   >news:417784c8.332704676@news.btclick.com...   
   >|   
   >| Do NOT use Dir() in FileExists and FolderExists   
   >| - it will work ok here but one day will bite you   
   >| - use GetAttr with Error Trapping   
   >|   
   >   
   >Why? What is the snag in Dir()? Unless you are talking about the   
   >problematic use of Dir to enumerate files, using Dir("*.tmp") followed   
   >by Dir() in a loop. I don't use Dir that way, and haven't had problems   
   >with Dir for ordinary verification.   
      
   He is using it in DirExists() and FileExists()   
   - potentially deeply buried utilities   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca