Difference between revisions of "SAVE DATASESSION"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
|||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Save the status of the current data session | Save the status of the current data session | ||
− | |||
==Syntax== | ==Syntax== | ||
Line 7: | Line 6: | ||
==See Also== | ==See Also== | ||
− | + | [[REPLACE()]], [[RESTORE RECORDVIEW]], [[RESTORE DATASESSION]], [[SKIP]] | |
− | + | ||
==Description== | ==Description== | ||
Line 47: | Line 45: | ||
</code> | </code> | ||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
[[Category:Screen Forms]] | [[Category:Screen Forms]] | ||
[[Category:Screen Forms Commands]] | [[Category:Screen Forms Commands]] |
Revision as of 09:10, 16 November 2011
Contents
Purpose
Save the status of the current data session
Syntax
SAVE DATASESSION [ TO <memvar>]
See Also
REPLACE(), RESTORE RECORDVIEW, RESTORE DATASESSION, SKIP
Description
The SAVE DATASESSION command is used to save the status of all open database tables. The SAVE DATASESSION command saves the following information pertaining to the current session for each open table:
- Currently selected cursor/workarea
- Cursor/Workarea number
- Database name
- Full path of table
- All index files
- Current record number
- Current index order
- Lock status
- eof() status
- bof() status
- found() status
The RESTORE DATASESSION command may be used to restore the above information. SAVE and RESTORE DATASESSION can be used with Recital Web session variables ( _SESSION[ ] ) to maintain context between different .rsp web page requests.
Example
save datasession close all // open up some new tables in a new datasession restore datasession
save datasession to statevar _session[ "statevar" ] = statevar // you can then restore the session on the next web page request like this statevar = _session[ "statevar" ] restore datasession from statevar