[fpc-pascal] Re: environmentstrings in windows (Jason P Sage)

Jason P Sage jasonpsage at jegas.org
Fri Dec 15 17:18:10 CET 2006

Regarding My Code Snippet - I was trying to show how I used the
"envstr(which one)" to snag the environment variables. This may be the
call you want to use. As far as I know - it grabs the WHOLE thing - You
obviously will have to do different parsing - as my code snippet relies
on the Equal Sign being the separator between environment variable name
and the value - however it should be hard to make the logic look for the
SECOND equal sign if the first character of the environment string is an
Equal sign - like in the sample you provided which was something like:


Where "=MyEnvVar" is the Environment Variable and "MyValue" is the

Best Regards,

Jason P Sage


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.19/587 - Release Date:
12/14/2006 7:28 PM

More information about the fpc-pascal mailing list