Difference between revisions of "POP DATASESSION"

From Lianjapedia
Jump to: navigation, search
Line 33: Line 33:
 
[[Category:Lianja VFP Extensions]]
 
[[Category:Lianja VFP Extensions]]
 
[[Category:VFP Command Extensions]]
 
[[Category:VFP Command Extensions]]
[[Category:Lianja v2.1]]
+
[[Category:Lianja v3.0]]

Revision as of 05:05, 26 July 2016

Purpose

Restore the last 'pushed' data session

Syntax

POP DATASESSION

See Also

PUSH DATASESSION, RESTORE DATASESSION, RESTORE RECORDVIEW, SAVE DATASESSION, SAVE RECORDVIEW

Description

The POP DATASESSION command is used to restore the last data session saved with PUSH DATASESSION. Data sessions can be pushed and popped up to 256 levels deep and operate on a last in, first out basis.

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