# GetErrorCode

GetErrorCode is a Vision Data Access function Functions are tools that are available in Spreadsheet for processing and analyzing acquisitions or other results. You can add functions to your Spreadsheet job to create tool chains and produce results for specific applications. that returns a diagnostic code from most structures and functions.

Note: If no error code is available for the #ERR, GetErrorCode returns –1.

## Using GetErrorCode

The general syntax of GetErrorCode is as follows:

GetErrorCode(Structure)