What do you mean? It is already trapped. The error is automatically written to the job log. If you don't want automatic error handling you can code something like the following Dim error, string OnErrorGoTo MY_ERROR_HANDLER FTPPutFile ..... OnErrorStop ... other statements ... Exit MY_ERROR_HANDLER: GetLastError error OnErrorStop ChooseCase error, END_CHOOSE Case "file ..." ... handle it ... Case "ftp..." CaseElse ... handle other errors ... END_CHOOSE: : Is there any way to trap this error in the program?
|