This function has as input parameter a error code (Value) and returns a error string. You can also use unit ua.Statuscodes and function Statuscodes.ToString(Value). By using the uaStatusCodeToString function you don't need to add ua.Statuscodes in your uses clause.