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 9,653 of 10,840   
   Lance to All   
   Why does CurDir() change persist?   
   13 Aug 05 02:02:10   
   
   From: Lbrannma@yahoo.com   
      
   Hi All,   
      
   I change the current directory in a proc, using CurDir(). The change   
   persists across executions. I would like the CurDir() return value to be the   
   same at the start of each execution. Any suggestions will be appreciated.   
   The code below illustrates the problem. Thanks.   
      
   Dim currentDir As String   
   MsgBox CurDir()   
      
   currentDir = CurDir() + "\foo"   
      
   MsgBox currentDir   
      
   ChDir (currentDir )   
      
   --- 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