hi again,
there still seems to be some confusion here. In my original post ( and in
the script that is showing this odd behaviour) i did close the file.

frame script on frame 2

on exitFrame me

  set schedulefile =new(xtra "fileio")
    createFile(schedulefile, "tempschedule.txt")
    filestatus = status(schedulefile)
       alert schedulefile.error(filestatus)
    openFile(schedulefile, "tempschedule.txt", 0)
  closeFile(schedulefile)
  set schedulefile=0


  set schedulefile =new(xtra "fileio")
  openFile(schedulefile, "tempschedule.txt", 0)
  delete(schedulefile)
  closeFile(schedulefile)
  set schedulefile=0

end

secondly to clarify, the variable gresult is NOT the FileIO text files'
filename but a name of a file to be stored within this file created by
fileIO.( iknow these scripts dont do that but the problem is there before
that stage so i kept it to a minimum to avoid confusion :) )
So to recap i beleive that the above code should create a file and then
delete it ( and i think you agree) BUT if you use a button script

on mouseUp
set gresult=""
  set gresult = baGetFilename("select","","","",0,"Please select a
file",false,-1,-1)
 go(1)
end

then if a file below the movies directory is selected with baGetFilename
then fileIO returns 'file already exists' this is what i can not understand.
why should buddy api or mui xtra (as the same thing happens)cause fileIO to
think the deleted file still exists, if you try it out and select files from
other folders or cancel then the file is created and edeleted as expected
but NOT if i select below the movie folder.

cheers again



Lee Blinco
Multimedia Developer
AVR Productions
+44 (0)1462 819603


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to