Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping error using Windows Script Host
Message
 
 
To
23/01/2008 15:54:40
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01284703
Message ID:
01284709
Views:
19
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform