New topic: 

Why Doesn't f.Delete Delete?

<http://forums.realsoftware.com/viewtopic.php?t=30639>

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       Barry           Post subject: Why Doesn't f.Delete Delete?Posted: 
Sat Oct 24, 2009 4:14 pm                        
Joined: Sun Dec 04, 2005 6:23 pm
Posts: 21
Location: Memphis, TN              Why doesn't f.Delete work? The file exists. 
I get f.ErrorCode 104: File in use, but the file is NOT in use as far as I can 
tell. What am I missing. I don't need to loose any more hair! Mac 
10.4.11/RB2005r4

Here's the code from my test button...

  dim f as FolderItem
  f = GetFolderItem("DownloadHelperOSx.app")
  
  if f.Exists then
  info.Text = f.name + " exists." + EndOfLine + EndOfLine
  f.Delete
  info.Text = info.Text + "Error Code: " + str(f.LastErrorCode)
  else
  info.Text = f.Name + " does NOT exist."
  end if     
_________________
BBL  
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to