Error Code Property

Description

Returns the last Error received

VB 6.0

Errorcode& = [ form ]. ABCTL ErrorCode

VC++

Long ABCTL.GetErrorCode( void );

VB .NET

System.Int32 = AxABCTL.ErrorCode

Remarks

ErrorCode property retains the last error received when the OnErrorEvent Fires.  If the fires the OnReadDone, or OnWriteDone, the ErrorCode property is set to 0.

NOTE: This property has changed to Long Integer in Studio 6.0. See

This property is available at RUNTIME Only

VB 6.0 Example

Dim nLastError as Long
nLastError =
ABCTL1.ErrorCode

VC++ Example

WORD  nLastError;
nLastError =
m_ABCTL1.GetErrorCode()

VB .NET Example

Dim nError As System.Int32
nError =
AxABCTL1.ErrorCode

Date Type

Long Integer  (32-Bit)

Also See

Error Codes | Winsock Error Codes | OnErrorEvent Event