Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-12

Re: environmentstrings in windows (Jason P Sage)

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jason P Sage

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:

=MyEnvVar=MyValue

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

Best Regards,

Jason P Sage
http://www.jegas.com

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