Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
tips:revmedia:subs18 [2023/11/13 13:20] – bshumsky | tips:revmedia:subs18 [2024/06/19 20:20] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== POP.SESSION===== | ||
+ | |||
+ | ^Published By^Date^Version^Knowledge Level^Keywords^ | ||
+ | |Revelation Technologies|14 NOV 1989|2.X|EXPERT|POP.SESSION| | ||
+ | |||
+ | POP.SESSION is a subroutine that restores the environment | ||
+ | parameters saved by a preceding call to PUSH.SESSION. | ||
+ | |||
+ | < | ||
+ | POP.SESSION(cursor.loc, | ||
+ | </ | ||
+ | |||
+ | ==== Using POP.SESSION ==== | ||
+ | |||
+ | Use POP.SESSION to restore an environment after use of | ||
+ | PUSH.SESSION. | ||
+ | PUSH.SESSION argument list. | ||
+ | |||
+ | === cursor.loc === | ||
+ | |||
+ | Use cursor.loc to pass the cursor position saved by | ||
+ | PUSH.SESSION. | ||
+ | |||
+ | === sentence === | ||
+ | |||
+ | Use sentence to pass the TCL sentence saved by | ||
+ | PUSH.SESSION. | ||
+ | |||
+ | === record === | ||
+ | |||
+ | Use record to pass the record saved by PUSH.SESSION | ||
+ | |||
+ | === id === | ||
+ | |||
+ | Use id to pass the record key saved by PUSH.SESSION. | ||
+ | |||
+ | === dict === | ||
+ | |||
+ | Use dict to pass the dictionary variable saved by | ||
+ | PUSH.SESSION. | ||
+ | |||
+ | === mv === | ||
+ | |||
+ | Use mv to pass the array of @MV, @INSERT (see Appendix 1, | ||
+ | " | ||
+ | PUSH.SESSION. | ||
+ | |||
+ | ==== Values returned ==== | ||
+ | |||
+ | None. | ||
+ | |||
+ | |||
+ | ==== Correct Use of POP.SESSION ==== | ||
+ | |||
+ | < | ||
+ | * The following code restores an environment preserved by PUSH.SESSION | ||
+ | |||
+ | DECLARE SUBROUTINE PUSH.SESSION, | ||
+ | |||
+ | PUSH.SESSION(cursor, | ||
+ | |||
+ | * Call a subroutine that modifies environment parameters. | ||
+ | |||
+ | GOSUB change.environ | ||
+ | |||
+ | text = "The modified values are:" | ||
+ | text<< | ||
+ | text<< | ||
+ | text<< | ||
+ | |||
+ | MSG(text, "", | ||
+ | |||
+ | POP.SESSION(cursor, | ||
+ | |||
+ | text = "The restored values are:" | ||
+ | text<< | ||
+ | text<< | ||
+ | text<< | ||
+ | |||
+ | MSG(text, "", | ||
+ | |||
+ | STOP | ||
+ | |||
+ | /* Assign sample values to system variables referenced by | ||
+ | the environment parameters */ | ||
+ | |||
+ | change.environ: | ||
+ | |||
+ | @@SENTENCE = " | ||
+ | @@RECORD | ||
+ | @@ID = " | ||
+ | |||
+ | RETURN | ||
+ | </ | ||