-

COE Administrator

-
Hi,

How can I make use of the return value in case of the method AddNewIntersection? I've tried to use the constant HRESULT and IDLRETVAL as follows:

If HRESULT = S_OK Then
.......
.......
End If

The above code is in a loop. But the problem is that the value of HRESULT happens to be S_OK always. The same code is behaving differently when used as follows:

If HRESULT E_FAIL Then
.......
.......
End If

I don't understand why?

The above code was written in a macro.

Any suggestions?

Thanks in advance,
Gopi.


Author: Gopi Prasad Mudragada