Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Translating WSH sample
Message
De
27/07/2001 10:05:31
 
 
À
27/07/2001 09:52:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00536302
Message ID:
00536381
Vues:
8
>>Do you mean that you tried to make all the calls on one object and VFP gave an error? What error?
>
>
>WScript = CREATEOBJECT("WScript.Shell")
>WshShell = CreateObject("WScript.Shell")
>WshShell.Run("calc")
>WScript.Sleep(100)
>
>
>The fourth line causes the error (translated from Spanish): "OLE Error Code 0x80020006: Unknown Name".
>
>Hilmar.

Ahh, ok. I think that the sleep method is only available in the scripting environment. For a script file, it's your only choice (you can't use the API). For your case, I would use Alexander's suggestion of using the Sleep API function.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform