Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!ncar!tank!mimsy!haven!adm!xadmx!rbw@williams.edu From: rbw@williams.edu Newsgroups: comp.lang.pascal Subject: Getting environment in TP Message-ID: <17817@adm.BRL.MIL> Date: 15 Dec 88 09:12:06 GMT Sender: news@adm.BRL.MIL Lines: 9 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