![]() |
LastError








Public Data Item |
Declared in: NiBinding.h |
Declaration
long LastError;
Description
The last error code used in the StatusUpdated event.
Notes:
1. The value of this property is zero if no error occurred the last time the CNiBinding object generated the StatusUpdated event.
2. Common causes of errors include incorrect network configurations, insufficient access privileges to connect to the data source, or an invalid URL.
3. The value of the error code is an HRESULT, which is the ActiveX data type used for reporting errors. It might include errors detected by the CNiBinding object or by the operating system's networking services. If an error is encountered, the CNiBinding object stores a text description of the error in the LastMessage property.
4. To determine the task the CNiBinding object was performing when the error occurred, check the LastMessage and Status properties.
5. This is a read-only property.