Documentation Comments
Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.
Reality V15.0 ()
Recovering Deleted Items: RECOVER-FD Command (Editor) (m618502+recoverfd.htm)
Recovers an item after it has been deleted by the FD command in the Editor.
TCL-I command.
RECOVER-FD file-specifier
file-specifier specifies the name of the file that contains the deleted item.
Item Id:
RECOVER-FD prompts you for the item-id of the item that was just deleted. If
the item-id matches the last one used by the Editor, the item is restored. The
message 'item-id' filed in file 'file-name'
is
displayed and control returns to TCL.
If the item-id you type does not match the last one used by the Editor, you
are again prompted for an item-id. RETURN or LINE FEED
entered as a response to the Item Id:
prompt returns the process to TCL
without recovering the item.
RECOVER-FD must be issued immediately after you execute an FD command or the item is lost permanently. Deleted frames are returned to overflow space.
RECOVER-FD never works if the ED{IT} command was called from a DataBasic program or from a Proc.
RECOVER-FD works only if the deleted frame has not been claimed from overflow by another process and, if a list was edited, it was the last item in the list.
:ED MD XYZ
New item
Top
.I
001 THIS IS A SAMPLE RECOVERY
002
Top
.FD
-FD? Sure (Y/N)?Y
'XYZ' deleted from file 'DICT MD'.
:RECOVER-FD MD
Item Id:XYZ
'XYZ' filed in file 'DICT MD'.