> One other thought- are you using baShortFileName?

No.  Just opening the file directly.  It's probably wrong, but I'm
assuming they all have Acrobat Reader.  It's a business audience.  But,
I should probably check.  I think I'll go do that.

- MM




>Thanks for the idea Stephen.  I might have to go with that because I 
>can't seem to get baFindDrive working.
>
>- MM
>
>
>
>
>
>what does a bafileexist() return I wonder...
>
>
>Stephen
>
>
>Mendelsohn, Michael wrote the following on 3/9/2005 8:55 AM:
>
>  
>
>>Hi list...
>>
>>I'm opening PDFs from a CD using baOpenFile.  Simple enough, but
>>occasionally, the file isn't found, returning error code 2.  I 
>>*suspect* it's because the CD has spun down, as it seems to happen
only
>>    
>>
>
>  
>
>>once per running the CD (according to the tester) and then PDFs open
>>    
>>
>without
>  
>
>>error.   
>>
>>I was thinking that a solution would be to put before baOpenFile a
>>baFindDrive command, forcing the disc to spin prior to opening the
PDF.
>>    
>>
>
>  
>
>>Might this be an appropriate solution?  Below is my code.
>>
>>Thanks as always,
>>- Michael M.
>>
>>================================
>>
>>on mOpenDoc(me) -- open correct PDF from "documents" folder
>>   -- *** Spin CD here? ***
>>   -- baFindDrive(_movie.path.char[1], pData.pDocQueue) -- (drive
>>letter, file name)
>>   -- *********************
>>   theFile = string( _movie.path & "documents" & pData.pDelim &
>>pData.pDocQueue) -- build path to PDF
>>   theResult = baOpenFile(theFile, "Normal")
>>   if (theResult < 32) then
>>     put theResult -- occasionally puts 2.
>>   end if
>>end


[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 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to