Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shell.Application Object in article VFUG
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00398658
Message ID:
00399133
Views:
10
>>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
Map
View

Click here to load this message in the networking platform