Gets the current parameter value.
If the function fails, the return value may be one of the WCL error codes.