GML::RESTORE - Restore Row Data to Original Values

Syntax

CALL "GML::RESTORE"

Description

This procedure restores a row of main cell data to original values; the row of data that is restored is the data that existed in the row before any cell has been edited. The GML_TPL$ template variable GML_TPL.ROW_N% is used to designate which row of data to restore.

When focus moves to a new row (row change) and editing begins on a cell within that row, the row data at that time is referred to as the original data. When the focus changes to a new row, the original data becomes the edited row data. If the focus has moved off the row and returned to the same row, variable GML_TPL.DEF_FLAG% must be set to a –1 prior to executing the RESTORE procedure.

Options

If variable GML_TPL.OPTION% is set to 1, the RESTORE procedure will restore the data that was stored through the use of the STORE_ROW_DATA procedure. The data is restored unconditionally; the value in variable GML_TPL.ROW_N% in the stored data will determine which row will be restored.

Example

2400 GML.SET%=1
2410 CALL "GML::TPL_PREP"
2420 GML_TPL.ROW_N%=2
2430 CALL "GML::RESTORE"

See Also

Visual PRO/5 Grid Management Library

Alphabetical Listing of GML Procedures