# 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 are removed (if results buffering is enabled).
- The current results being reported over the currently enabled factory protocol are cleared (including the result ID, result code and all result data).
- The Results Valid bit is cleared.

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

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.

Outputs

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