home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!hobbes.physics.uiowa.edu!news.iastate.edu!vincent2.iastate.edu!cpetersn
- From: cpetersn@iastate.edu (Clifton R Peterson)
- Subject: Re: Revelation: PUSH.SESSION/POP.SESSION
- Message-ID: <cpetersn.726301104@vincent2.iastate.edu>
- Keywords: revelation
- Sender: news@news.iastate.edu (USENET News System)
- Organization: Iowa State University, Ames IA
- References: <1993Jan6.040107.17339@massey.ac.nz>
- Date: Wed, 6 Jan 1993 06:18:24 GMT
- Lines: 48
-
- In <1993Jan6.040107.17339@massey.ac.nz> D.M.Todd@massey.ac.nz (D.M. Todd) writes:
-
- >Can someone tell me how to use PUSH.SESSION/POP.SESSION to save and
- >restore system variables in Advanced Revelation?
-
- >TIA
-
- >David
-
- Right out out of my System Subroutines book
-
- PUSH.SESSION(cursor.loc, sentence, record, id, dict, mv)
-
- Used to save certain envirn vars
- @SENTENCE
- @RECORD
- @ID
- @DICT
- @MV
- @INSERT
- as well as the curent cursor position and video attributes
-
- cursor.loc, used to store current cursor position
- sentence, used to store @SENTENCE
- record, for @RECORD
- id, for @ID
- dict, for @DICT
- mv, for @MV, @INSERT, video attributes (delimited by @RM)
-
- POP.SESSION() has the same argument list.
-
- The idea is;
- Before doing a piece of code that could stomp on the above variables,
- set aside a variable name for each of the arguments and use
- PUSH.SESSION to save them off. Then, later in the same code, use
- POP.SESSION to make the system variables once again equal to the
- values before the PUSH (as long as you use the same variables where
- the information is stored).
-
-
- If you have further questions, just ask and I'll try to help.
-
- Clif
- --
- _________________________________________________________________________
- / Clifton R. Peterson 1108 Burnett (515)232-5254 \
- | B.S. Chem E Ames IA 50010 |
- \_______________"42"_is_one_hell_of_an_answer!!___________________________/
-