Visual Basic (Declaration) | |
---|---|
Sub ClearError() |
C# | |
---|---|
void ClearError() |
Typically, the first error seen in any argument to a custom function will be the result of the custom function. To override this behavior, call ClearError after finishing all access to function arguments.
Note: Accessing function arguments after calling ClearError will result in undefined behavior.
The recommended practice for overriding default error handling is to:
- Finish all access to arguments.
- Call ClearError.
- Set the return value.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family