Creating Error Values

You use the CVErr function to create error values. For example, he following code creates two error values.


NoRadius = CVErr(50000)

NotANumber = 50001
InvalidArgument = CVErr(NotANumber)

User-defined error values are always stored in a variable of the Error data type, which is a subtype of the Variant data type. For more information about the Error data type, see "Storing Values in Variant Variables" in Chapter 2.