# fpGetKvErrorCode

This function gets an extended error code defined in `KVErrorCode`. If a KeyView HTML Export function fails, you can call `fpGetKvErrorCode()` to find extra information on the failure.

## Syntax

    KVErrorCode pascal fpGetKvErrorCode (
        void 	     *pContext );

## Arguments

`pContext` | A pointer returned from fpInit() or fpInitWithLicenseData().

## Returns

The current error code.

## Discussion

If there has not been a failure, this function returns `KVERR_Success`.

_FT_HTML5_bannerTitle.htm