home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
181.img
/
TASM-101.ZIP
/
ENVTEST.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-10-31
|
408b
|
19 lines
program EnvTest;
{ program looks for environment strings }
var
EnvVariable : string;
EnvValue : string;
{$F+}
function EnvString(s:string) : string; external;
{$L ENVSTR.OBJ}
{$F-}
begin
EnvVariable := 'PROMPT';
EnvValue := EnvString(EnvVariable);
if EnvValue='' then EnvValue := '*** not found ***';
Writeln('Environment Variable: ',EnvVariable,' Value: ',EnvValue);
end.