I have the code as follows:
If function1(arg1,arg2) = 1 Then
A
Else
B
End If.
The function returns 1 on successful completion and -1 on failure.
The code works fine but when the function returns -1 and I check the value of function(Arg1,Arg2) in Quick Watch I see it as 1, even though the part B is properly executed.
Can anyone please tell me what could be the reason for that??
If function1(arg1,arg2) = 1 Then
A
Else
B
End If.
The function returns 1 on successful completion and -1 on failure.
The code works fine but when the function returns -1 and I check the value of function(Arg1,Arg2) in Quick Watch I see it as 1, even though the part B is properly executed.
Can anyone please tell me what could be the reason for that??