Syntax |
IsError(expression) |
Description |
Returns True if expression is a user-defined error value; returns False otherwise. |
Example |
This example creates a function that divides two numbers. If there is an error dividing the numbers, then a variant of type "error" is returned. Otherwise, the function returns the result of the division. The IsError function is used to determine whether the function encountered an error. Function Div(ByVal a,ByVal b) As Variant Sub Main() |
See Also |
Variant (data type); IsEmpty (function); IsDate (function); IsObject (function); VarType (function); IsNull (function). |
I |