Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting from Recycle Bin
Message
From
06/04/2006 15:32:12
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01110745
Message ID:
01111179
Views:
38
This message has been marked as a message which has helped to the initial question of the thread.
>Herman, thanks.
>
>Yes, the line inkey( 0, 'HM' ) force INVOKEVERBS to work: files are removing now from Recycle Bin. Without inkey, files remain in Recycle Bin.
>
>But I do not understand, why this inkey() should be added. Could you explain ?
>

Hi Yuri,

Well, I can't quite explain what is really happening here too. But my guess is, when the VFP apps running as an EXE, VFP needs at least "one event" so VFP can wait for any input. Without READ EVENTS or INKEY(0), VFP will not wait for any input especially an event from a dialog (thread) that is not attached to VFP, like the dialog comes from InvokeVerbs. And then VFP execute the line "oShell = NULL" so the object is destroyed without question.

But again that's just my guess :-)
Herman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform