Question about code in the Book
Hello,
I don't fully understand the code on page 453. (The same code
occurs on serveral occasions.)
From what I can see it does not make sence.
In the beginning of page 452 an error handler is initiated:
On Error GoTo EH
On page 453 the following occurs:
Err.Raise 50000, "CustomTask_Execute", sErrorString
pTaskResult = DTSTaskExecResult_Failure
My understanding is that the "pTaskResult = DTSTaskExecResult_Failure" line will never be executed.
The Err.Raise will force the execution to jump to EH:
Am I missing something? Since this is a good book my first, second and third thought was that I must be wrong but I just don't get it....
Best regards,
Kastas
|