Navigation: ABC Library Reference > WindowManager > WindowManager Methods >====== SaveHistory (save history fields for later restoration) ====== | |
SaveHistory, PROTECTED
The SaveHistory method saves a copy of the fields named by the AddHistoryField method for later restoration by the RestoreField method.
Implementation:
The AddHistoryFile method names the file and record buffers from which fields are saved and restored. The AddHistoryField method associates specific fields from the history file with their corresponding WINDOW controls. The SaveHistory method saves a copy of the history fields. The RestoreField method restores the contents of a specific control.
Example:
WindowManager.TakeCompleted PROCEDURE
CODE
SELF.SaveHistory
CASE SELF.Request
OF InsertRecord
DO InsertAction
OF ChangeRecord
DO ChangeAction
OF DeleteRecord
DO DeleteAction
END
See Also: RestoreField AddHistoryField, AddHistoryFile, HistoryKey,