User Tools

Site Tools


addhistoryfile_add_restorable_history_file_.htm
Navigation:  ABC Library Reference > WindowManager > WindowManager Methods >====== AddHistoryFile (add restorable history file) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

AddHistoryFile( record buffer, save buffer )

blk2blue.jpg

AddHistoryFile Adds a history file to the WindowManager object.
record buffer The label of the history file's RECORD.
save buffer The label of a STATIC variable declared LIKE(record buffer). The WindowManager saves to and restores from this variable.

The AddHistoryFile method adds a history file to the WindowManager object. AddHistoryFile sets the file's record buffer and a corresponding save buffer so the WindowManager can restore from the save buffer when the end user invokes the history key (or FrameBrowseControl ditto button).

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:

ThisWindow.Init PROCEDURE()

 CODE

!procedure code

 SELF.HistoryKey = CtrlR

 SELF.AddHistoryFile(CLI:Record,History::CLI:Record)

 SELF.AddHistoryField(?CLI:Name,2)

 SELF.AddHistoryField(?CLI:StateCode,3)

See Also:     AddHistoryFile, HistoryKey, RestoreField, SaveHistory

addhistoryfile_add_restorable_history_file_.htm.txt · Last modified: 2021/04/15 15:56 by 127.0.0.1