6.1.2.3.1.14 CVErr

Function Declaration

 Function CVErr(Expression As Variant) As Variant 

Parameter

Description

Expression

Any data value (section 2.1).

 

Runtime Semantics.

§ If the value of Expression is an Error (section 2.1) data value then the value of Expression is returned without raising an error.

§ The data value of Expression is Let-coerced to Long (section 5.5.1.2.1) for use as an error code (section 2.1). If the resulting data value is not in the inclusive range 0 to 65535, Error 5 is raised.

§ Return an Error (section 2.1) data value whose error code is the result of Expression being Let-coerced to Long (section 5.5.1.2.1).