home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / apps / 6019 < prev    next >
Encoding:
Internet Message Format  |  1992-12-13  |  1.6 KB

  1. Path: sparky!uunet!think.com!spool.mu.edu!agate!agate!jsegal
  2. From: jsegal@cogsci.Berkeley.EDU (Jonathan Segal)
  3. Newsgroups: comp.os.ms-windows.apps
  4. Subject: Global (persistent) variables in WordBasic
  5. Date: 13 Dec 92 01:54:36
  6. Organization: The antithesis of chaos.
  7. Lines: 30
  8. Distribution: na
  9. Message-ID: <JSEGAL.92Dec13015436@cogsci.Berkeley.EDU>
  10. NNTP-Posting-Host: cogsci.berkeley.edu
  11.  
  12. I've just started used WinWord2.0b.  I've sent away for the WordBasic
  13. manual (which hasn't yet arrived), and have scoured the help files
  14. unsuccessfully.   Here's my dilemma:
  15.  
  16. I've written a macro, and I want to keep a value between macro
  17. invocations.  As far as I have been able to determine, all variables
  18. in WordBasic are local, automatic variables.  Is this true, or have I
  19. just not looked hard enough?  Are there really no global, or at the
  20. very least no persistent (i.e. like "static" local variables in C)
  21. variables in WordBasic?  If, in fact there are, how does one declare
  22. them?
  23.  
  24. I realize that I could hack something up by storing the value in some
  25. non-variable (like a macro, or even a text buffer), but it
  26. seems like an extension language should have some sort of persistent
  27. variables.
  28.  
  29. (In particular, for the task I'm doing, I'd like a persistent variable
  30. associated with a text buffer/file/window, analogous to a buffer-local
  31. variable in emacs...).
  32.  
  33. Thanks in advance for any info...
  34.  
  35. -JAS
  36.  
  37. --
  38. "I don't know, I feel a Void at the center of my being."| -JAS
  39. "What kind of Void?" "Well, an empty void." - W. Allen  | Jonathan A. Segal
  40. An aspiring bridge player                           jsegal@cogsci.berkeley.edu 
  41.  
  42.