Difference between revisions of "RESTORE RECORDVIEW"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Helen.george (Talk | contribs) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Restore a previously saved workarea status | Restore a previously saved workarea status | ||
− | |||
==Syntax== | ==Syntax== | ||
RESTORE RECORDVIEW FROM <memvar> | RESTORE RECORDVIEW FROM <memvar> | ||
− | |||
==See Also== | ==See Also== | ||
− | + | [[DO]], [[REPLACE()]], [[RESTORE DATASESSION]], [[SAVE DATASESSION]], [[SAVE RECORDVIEW]], [[SKIP]] | |
− | + | ||
==Description== | ==Description== | ||
Line 33: | Line 30: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
− | [[Category: | + | [[Category:Databases]] |
− | [[Category: | + | [[Category:Lianja VFP Extensions]] |
+ | [[Category:VFP Command Extensions]] |
Latest revision as of 11:01, 4 February 2013
Contents
Purpose
Restore a previously saved workarea status
Syntax
RESTORE RECORDVIEW FROM <memvar>
See Also
DO, REPLACE(), RESTORE DATASESSION, SAVE DATASESSION, SAVE RECORDVIEW, SKIP
Description
The RESTORE RECORDVIEW command restores a workarea status that was previously saved to the specified <memvar> with the SAVE RECORDVIEW command. RESTORE RECORDVIEW restores the following information:
- Workarea number
- Current record number
- Current index order
- Lock status
- eof() status
- bof() status
- found() status
The SAVE and RESTORE RECORDVIEW commands are useful in validation and hot key procedures when you want to move off the current record, execute a validation procedure, and then return to the same record. The SKIP 0 command must be used prior to a GOTO command in order to flush locked records to the disk if they have been modified.
Example
procedure check_value save recordview to m_recv // Validate data restore recordview from m_recv return