# 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 needs to be a reference to any event with a timestamp, for example, one of the following: 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.