home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / 8842 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.9 KB  |  61 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!hobbes.physics.uiowa.edu!news.iastate.edu!vincent2.iastate.edu!cpetersn
  3. From: cpetersn@iastate.edu (Clifton R Peterson)
  4. Subject: Re: Revelation: PUSH.SESSION/POP.SESSION
  5. Message-ID: <cpetersn.726301104@vincent2.iastate.edu>
  6. Keywords: revelation
  7. Sender: news@news.iastate.edu (USENET News System)
  8. Organization: Iowa State University, Ames IA
  9. References: <1993Jan6.040107.17339@massey.ac.nz>
  10. Date: Wed, 6 Jan 1993 06:18:24 GMT
  11. Lines: 48
  12.  
  13. In <1993Jan6.040107.17339@massey.ac.nz> D.M.Todd@massey.ac.nz (D.M. Todd) writes:
  14.  
  15. >Can someone tell me how to use PUSH.SESSION/POP.SESSION to save and
  16. >restore system variables in Advanced Revelation?
  17.  
  18. >TIA
  19.  
  20. >David
  21.  
  22. Right out out of my System Subroutines book
  23.  
  24. PUSH.SESSION(cursor.loc, sentence, record, id, dict, mv)
  25.  
  26.     Used to save certain envirn vars
  27.       @SENTENCE
  28.       @RECORD
  29.       @ID
  30.       @DICT
  31.       @MV
  32.       @INSERT
  33.     as well as the curent cursor position and video attributes
  34.  
  35.     cursor.loc, used to store current cursor position
  36.     sentence, used to store @SENTENCE
  37.     record, for @RECORD
  38.     id, for @ID
  39.     dict, for @DICT
  40.     mv, for @MV, @INSERT, video attributes (delimited by @RM)
  41.  
  42. POP.SESSION() has the same argument list.
  43.  
  44. The idea is; 
  45.     Before doing a piece of code that could stomp on the above variables, 
  46.     set aside a variable name for each of the arguments and use
  47.     PUSH.SESSION to save them off.  Then, later in the same code, use
  48.     POP.SESSION to make the system variables once again equal to the
  49.     values before the PUSH (as long as you use the same variables where
  50.         the information is stored).
  51.  
  52.  
  53. If you have further questions, just ask and I'll try to help.
  54.  
  55. Clif
  56. -- 
  57.  _________________________________________________________________________
  58. / Clifton R. Peterson    1108 Burnett        (515)232-5254              \
  59. | B.S. Chem E            Ames IA  50010                                   |
  60. \_______________"42"_is_one_hell_of_an_answer!!___________________________/
  61.