Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trapping error using Windows Script Host
Message
 
 
À
23/01/2008 15:54:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
01284703
Message ID:
01284709
Vues:
20
Hi Mark,

Sure. The simplest way is to use TRY...ENDTRY
TRY 
  oShell = Createobject("wscript.shell")
  oShell.Run(lcVBSFileName,1, .T.)								
CATCH TO oExp WHEN oExp.Errorno = 1426 OR oExp.Errorno = 1429 
	* Handle error here
ENDTRY	
>Is there a way to trap an error that is generated by this code?
>
>
>
>oShell = Createobject("wscript.shell")								
>oShell.Run(lcVBSFileName,1, .T.)									
>
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform