NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HxLink DID NOT INITIALIZE

Clear Method

Clears all property settings of the Err object.

object.Clear

The object is always the Err object.

Remarks

Use Clear to explicitly clear the Err object after an error has been handled, for example, when you use deferred error handling with On Error Resume Next. The Clear method is called automatically whenever any of the following statements is executed:

Note   The On Error Resume Next construct may be preferable to On Error GoTo when handling errors generated during access to other objects. Checking Err after each interaction with an object removes ambiguity about which object was accessed by the code. You can be sure which object placed the error code in Err.Number, as well as which object originally generated the error (the object specified in Err.Source).

See Also

Example

Description Property | Err Object | HelpContext Property | HelpContextID Property (VBA Add-In Object Model) | HelpFile Property | LastDLLError Property | Number Property | On Error Statement | Raise Method | Source Property

Applies To: BindingCollection Object | DataMembers Collection | Err Object | ExportFormats Collection | Licenses Collection