home bbs files messages ]

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

   comp.databases.paradox      To crash or not to crash, asks Borland      9,834 messages   

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

   Message 9,219 of 9,834   
   Tony McGuire to All   
   Re: renaming a file   
   17 May 08 10:33:40   
   
   From: png.paradoxcommunity@com   
      
   > The error message states :   
   > error in rename procedure, unknown table type   
   >   
   > What am I doing wrong.   
      
      
   Look at HELP on rename.   
      
   You need to use a filesystem type to rename.  And you need to   
   findfirst() on it, I believe.   
      
   That is in addition to the colon for alias that Dennis mentioned.   
      
   Something like:   
      
   stFile="drive:\\path\\subpath\\currentname.xls"   
   stNewFile="drive:\\path\\subpath\\newname.xls"   
      
   if fs.findfirst(stFile) then   
     fs.rename(stFile,stNewFile)   
   endif   
      
   Although you may have to have the files in the :work: directory and   
   may not be able to specify path.  Try it and see, and let us know your   
   results if you would.   
      
   Don't expect direct e-mail responses.  You need to visit here and   
   retrieve any responses.  Not to mention that you are likely signing up   
   to be SPAMmed by posting a real e-mail address in the clear as you   
   have.   
      
      
      
   --   
   ------------------------------   
    Tony McGuire   
      
   --- 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