Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting from Recycle Bin
Message
De
06/04/2006 15:32:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01110745
Message ID:
01111179
Vues:
30
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform