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