![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm trying to use On Error Goto Label in the main funtion of my ActiveX task,but it says syntax error.How can I use that? Thanks |
#3
| |||
| |||
|
|
How can I handle unexpexted errors in my ActiveX code? |
#4
| |||
| |||
|
|
Hi Ray, "Ray5531" <RayAll (AT) microsft (DOT) com> schrieb im Newsbeitrag news:%234wloj1TFHA.2976 (AT) TK2MSFTNGP10 (DOT) phx.gbl... How can I handle unexpexted errors in my ActiveX code? scripting doesn't suport labels. Just use On Error Resume Next instead and check the result of each call that could fail. Helge |
#5
| |||
| |||
|
|
Hi Ray, "Ray5531" <RayAll (AT) microsft (DOT) com> schrieb im Newsbeitrag news:%234wloj1TFHA.2976 (AT) TK2MSFTNGP10 (DOT) phx.gbl... How can I handle unexpexted errors in my ActiveX code? scripting doesn't suport labels. Just use On Error Resume Next instead and check the result of each call that could fail. Helge |
#6
| |||
| |||
|
|
Sorry,I forgot to ask how can I get the description of the error that has just happened. |
#7
| |||
| |||
|
|
Hi Ray, "Ray5531" <RayAll (AT) microsft (DOT) com> schrieb im Newsbeitrag news:ON96wfAUFHA.3644 (AT) TK2MSFTNGP10 (DOT) phx.gbl... Sorry,I forgot to ask how can I get the description of the error that has just happened. when you want to program activeX tasks you should be familiar with vb scripting (vbs) or java scripting. When an error occurs the global error object "Err" gets all error information. You just have to check Err.Number and Err.Description, typically with an If Err.Number <> 0 ... For further study you may start here http://msdn.microsoft.com/library/de...asp?frame=true Helge |
#8
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |