Hello Gene,

That just raises more questions about what COM object is being used to
create the XLS file. 
Is it shipping with the latest Windows 10 computer?
Is it built in to the VFP runtimes?
Is this functionality suddenly going to stop working one day after the DLL
is identified and removed by some anti-virus software?

All things I don't have time to investigate.

Due to a different control having the same "Unknown COM status" message when
attempting to have it write a file to a non-existent path, or a locked file,
I have put checks in before calling the functions. Sometimes I think I
should change my behavior to write to a temporary file, then move the bytes
from the temporary file in to the destination. It would mean a longer save
time, but I would be able to deal with anti-virus and on-demand backup tools
putting a lock on the files. It's not an exercise for this month.

All things in their time,

Tracy

-----Original Message-----
From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Gene
Wirchenko
Sent: Monday, June 24, 2019 6:15 PM
To: profoxt...@leafe.com
Subject: Odd Error Message

Hello:

      I got an interesting error message today.  It was another 
example of an error message indicating that an error had occurred 
with the message not terribly useful for determining the actual error.

      Try the following
           use sometable
           copy to nothere\nothere\sometable
           copy to nothere\nothere\somecopy type xl5
where sometable is some table and nothere\nothere is a non-existent 
subdirectory chain.

      The error message for the first copy command is "Invalid path 
or filename."  This is sensible.

      The error message for the second copy command is "OLE error 
code 0x80030003: Unknown COM status code."  Huh?

      Copying to a directory that does not exist results in an 
error.  You even get a choice of error messages.

Sincerely,

Gene Wirchenko


[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/000001d52b5a$27264c50$7572e4f0$@powerchurch.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to