# ClearResultsBuffer

Clears any buffered results from a factory protocol results buffer after a specified event. When the function receives the specified event, the following occurs:

- All the results queued in the results buffer will be removed (if results buffering is enabled).
- The current results being reported over the currently enabled factory protocol will be cleared (including the result ID, result code and all result data).
- The results valid bit will be cleared.

After the ClearResultsBuffer function executes, additional results may be queued, using the WriteResultsBuffer function.

## ClearResultsBuffer Inputs

Parameter | Description
Event | Specifies the spreadsheet event that triggers the data to be cleared from the results buffer. This parameter must be a reference to one of the following: The Image data structure in cell A0, containing the AcquireImage function. A cell containing an Event function. A cell containing a Button function.

## ClearResultsBuffer Outputs

Returns | A value of 1, or #ERR if the input parameter is invalid.