home *** CD-ROM | disk | FTP | other *** search
/ FCE Gold Plus / GOLD.iso / pc / fscommand / Xtras / FileXtra4_test.dir / 00006_Script_test_FileExists2() < prev    next >
Text File  |  2002-12-20  |  628b  |  22 lines

  1. on test_FileExists2
  2.   fxObj = xtra("FileXtra4").new()
  3.   
  4.   thePath = "Macintosh HD:Applications (Mac OS 9):Director 8.5:"
  5.   theTypes = "TEXT/JPEG/PDF "
  6.   newPath = fxObj.fx_FileOpenDialog(thePath, theTypes)
  7.   
  8.   put "test_FileExists2(): newPath == '" & newPath & "'"
  9.   
  10.   put "test_FileExists2(): length of newPath == " & string(newPath.length)
  11.   
  12.   put "fx_FileExists2() returns " & string(fxObj.fx_FileExists(newPath))
  13.   
  14.   errCode = fxObj.fx_ErrorNumber()
  15.   put "FX3 error code: " & string(errCode)
  16.   if errCode <> 0 then
  17.     put "    error string: " & fxObj.fx_ErrorString()
  18.   end if
  19.   
  20.   fxObj = 0
  21. end
  22.