home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!davidp
- From: davidp@stealth.usc.edu (David Peterson)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: "GLOBAL System Variables", Help!!!
- Date: 24 Jan 1993 19:07:55 -0800
- Organization: University of Southern California, Los Angeles, CA
- Lines: 22
- Distribution: world
- Message-ID: <1jvlibINN30b@stealth.usc.edu>
- References: <1993Jan21.200510.7950@fcom.cc.utah.edu> <C1CAAv.9Hu@news.udel.edu>
- Reply-To: davidp@usc.edu
- NNTP-Posting-Host: stealth.usc.edu
-
-
- In article <C1CAAv.9Hu@news.udel.edu>, lecates@bach.udel.edu (Roy LeCates) writes:
- |> In article <1993Jan21.200510.7950@fcom.cc.utah.edu> Dmitry Boldyrev <dmitry@chemistry.chem.utah.edu> writes:
- |> >Does anyone know how to write/read Global variables in THINK Pascal ?
- |> >I have an address of CurActivate ($0A64) and size (4).
- |> >Think Reference says that it's a "Global Variable", but
- |> >when I tried to use it in Pascal it says "unknown indef.".
- |> >" MyWindow := CurActivate; "
- |>
-
- Well, it C you do something like this to set a global:
-
- *((GlobalType*) GlobalName) = newValueOfTypeGlobalType;
-
- I'm not positive about Pascal, but I think it would look something like this:
-
- (GlobalType^(GlobalName))^ := newValueOfTypeGlobalType;
-
- Works for types four or less bytes in size. (In C at least, Pascal might
- copy the whole thing over.) Just turn it around to read the global.
-
- -dave.
-