Arno Garrels wrote:
What I am actually doing is reading the result from
GetEnvironmentStrings() into a string list, then iterating thru
that list calling GetEnvironmentVariable() for each variable-name
in order to check for a value being returned or not, is this correct?

GetEnvironmentStrings will give you a list of all the variables and their values. If you already know the name of the variable you're looking for, then forget about GetEnvironmentStrings and just call GetEnvironmentVariable once with the name you want.


--
Rob

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to