Difference between revisions of "PUSH DATASESSION"

From Lianjapedia
Jump to: navigation, search
(Created page with "''Coming Soon''")
 
Line 1: Line 1:
''Coming Soon''
+
==Purpose==
 +
Save the current data session
 +
 
 +
==Syntax==
 +
PUSH DATASESSION
 +
 
 +
==See Also==
 +
[[POP DATASESSION]], [[RESTORE DATASESSION]], [[RESTORE RECORDVIEW]], [[SAVE DATASESSION]], [[SAVE RECORDVIEW]], [[SKIP]]
 +
 
 +
==Description==
 +
The PUSH DATASESSION command is used to save the current data session.  It can then be restored using the [[POP DATASESSION]] command.  Data sessions can be pushed and popped up to 256 levels deep they operate on a last in, first out basis.  All tables are closed by the PUSH DATASESSION command.
 +
 
 +
The [[SAVE DATASESSION]] and [[RESTORE DATASESSION]] commands can also be used to save and restore the current data session, optionally saving and restoring from a memory variable.
 +
 
 +
==Example==
 +
<code lang="recital">
 +
// save the current data session
 +
push datasession
 +
// Carry out other operations with different data
 +
// then save this second data session
 +
push datasession
 +
// Carry out other operations with different data
 +
// then restore the second data session
 +
pop datasession
 +
// Carry out other operations with different data
 +
// then restore the original data session
 +
pop datasession
 +
</code>
 +
 
 +
[[Category:Documentation]]
 +
[[Category:Commands]]
 +
[[Category:Databases]]
 +
[[Category:Lianja VFP Extensions]]
 +
[[Category:VFP Command Extensions]]
 +
[[Category:Lianja v2.1]]

Revision as of 11:24, 22 June 2016

Purpose

Save the current data session

Syntax

PUSH DATASESSION

See Also

POP DATASESSION, RESTORE DATASESSION, RESTORE RECORDVIEW, SAVE DATASESSION, SAVE RECORDVIEW, SKIP

Description

The PUSH DATASESSION command is used to save the current data session. It can then be restored using the POP DATASESSION command. Data sessions can be pushed and popped up to 256 levels deep they operate on a last in, first out basis. All tables are closed by the PUSH DATASESSION command.

The SAVE DATASESSION and RESTORE DATASESSION commands can also be used to save and restore the current data session, optionally saving and restoring from a memory variable.

Example

// save the current data session
push datasession
// Carry out other operations with different data
// then save this second data session
push datasession
// Carry out other operations with different data
// then restore the second data session
pop datasession
// Carry out other operations with different data
// then restore the original data session
pop datasession