General information
Category:
Windows API functions
>>Hi all,
>>
>>I need some help on the above. The article is in VFUG July 2000. I have tried out what was written and I faced some problem.
>>
>>Using the CopyHere method :
>>
>>1. First time OK.
>>2. Second time copying same file to same directory with response OK to overwrite also OK.
>>3. Second time copying same file to same directory with response Cancel to overwrite produced error with the message :
>>
>>OLE error code 0x80070007: The storage control blocks were destroyed.
>>
>>I hope someone can enlighten me on what I have missed out.
>>
>>Thanks.
>
>Since I wrote the article, I guess I'd better answer this.
>
>If I understand correctly, you're asking how to handle the user cancelling the process. If so, what you need to do is set up a temporary error handler to trap the error. VFP will return 1426 if the user cancels. I'd check for that value, and perhaps set a property in it indicating that the user had terminated the process.
Thanks for the info. Initially I thought this would be handled. I think I've got this right now. Great article. Thanks again.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only