Path: utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!uflorida!haven!adm!xadmx!rbw%WILLIAMS.EDU@cunyvm.cuny.edu From: rbw%WILLIAMS.EDU@cunyvm.cuny.edu Newsgroups: comp.lang.pascal Subject: Getting environment in TP Message-ID: <17850@adm.BRL.MIL> Date: 16 Dec 88 20:08:45 GMT Sender: news@adm.BRL.MIL Lines: 10 Todd Kirschbaum (kirsch@braggvax.arpa) posted an answer to how to get the environment variables in Turbo Pascal. His solution will work for TP3.0, and I believe certain cases of TP4.0, but in TP4.0 you should use the PrefixSeg "constant" rather than "Cseg". The code segment may change, for instance if you are in a unit, while PrefixSeg will always point to the PSP. -Richard Ward rbw@cs.williams.edu Williams College, Williamstown, MA