1 2 3 4 5 6 7 8 9
Uses Dos; { Declared EXPLICITLY with Ansistring, so NO mistaking is possible } Function Getenv (Var EnvVar : AnsiString): AnsiString; begin Result:=Dos.Getenv(EnvVar); end;