The following is not checking for errors correctly, where else should I perform an error check?
i.e. IF ErrorCode()
Open(MyView)
IF ErrorCode()
Message('An error!')
END
MyView{PROP:Filter} = 'test'
Set(MyView)
LOOP
Next(MyView)
IF ErrorCode()
BREAK
END
END
Close(MyView)
IF ErrorCode()
Message('An error!')
END
It came up as an issue in my code today. Something was the results of my Set/Next to be not what I expected.
Looking at the database trace showed me what was wrong but it took me a little while to figure out why the code, similar to the above, was not giving me an error at runtime but instead failing quietly.
Good point about being specific about the BadRecErr but that is not the one I was after. There is actually still one other place that you can (and need!) to check for error.