GetErrorCode

Prototype: int GetErrorCode(void)

Description: Returns the error code of the last call executed.  For pending commands this is just whether or not the call has been made pending or not. Call GetLastCommandError to find out the result of the pending command once it has been executed.

Returned Data: integer containing the error code.