Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy a folder (including all content)
Message
 
À
07/08/2002 11:22:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00687053
Message ID:
00687085
Vues:
18
>Yes, I read those articles, and I sure will go back to them, for reference. But I thought I might want the complete listing (I got the link in another response).
>
Hilmar,

It can be confusing for someone without experience in either VB/VBScript. There are some methods, exposed by the WScript object, that aren't available from within VFP. For example, the Error object and the Sleep method.

In the case of the former, there are some instances, such as manipulating the Registry that you'd probably be better off sticking with the Registry class in the FFC or Rich Strahl's class. Further, both of these are more robust than what you get with the WSH.

In the case of the latter, you'd have to use the API call that the Sleep method wraps.

Further, there is at least one object that doesn't quite work correctly in VFP. In this case, it's the WScript.Shell's Popup method. This method produces the same dialog box that MESSAGEBOX() does. When we wrote the articles, we initially thought we might be able to extend VFP's built-in call to MESSAGEBOX(), since the Popup method has a time-out parameter (remember VFP 7.0 wasn't released then). Unfortunately, it doesn't work from within VFP.

We took all these things into consideration when we wrote the series. Are there things that we didn't cover that could be useful from within VFP? There very well may be, so have fun poking around the WSH.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform