[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ValEdit' (#lcl)

# TValueListEditor.InvalidateCachedRow

Resets the last edited row number for the control.

## Declaration

Source position: valedit.pas line 159

`protected procedure TValueListEditor.InvalidateCachedRow;`

## Description

InvalidateCachedRow is a procedure used to invalidate the internal member variable used to track the last row edited in the control. When Strings contains data, the internal tracker is set to -1. When Strings has no data (length is 0), the internal tracker defaults to the first visible non-fixed row. The editing buffers for both the key and value are cleared.

InvalidateCachedRow is called when the TValueListStrings instance in Strings performs Add, Delete, Insert, and Sort operations.

## See also

TValueListEditor.Strings |  | Stores the keys, values, and item definitions in the control.
TValueListStrings |  | Stores values and item definitions used in TValueListEditor.