That's why I put the IF clause into it. An error code will only be set if the WRITEVALUE fails, a successful write will not change the last error code.
_________________________
There are two types of vessels, submarines and targets.