function SetPreviousData(const PreviousDataKey: Integer; const ValueName, ValueData: String): Boolean;
Sets a value that can be restored later using GetPreviousData. Call SetPreviousData inside a RegisterPreviousData event function, once per setting.