[fpc-pascal] environmentstrings in windows
vsnijders at quicknet.nl
Thu Dec 14 22:52:08 CET 2006
Marco van de Voort schreef:
>> On Thu, 14 Dec 2006, Vincent Snijders wrote:
>>> The first two envrionment string are special, in the sense that their name
>>> start with a =.
>>> but if ask for the value of the environment variable '=D:', it returns the
>>> empty string.
>>> I am wrestling a bit with how to interprete this. Should I consider these
>>> variable as special and hidden and ignore them?
>>> Or should code parsing environmentstrings be able to handle variables with a
>>> '=' on the first position?
>> IMHO, you should not be allowed to have a = in the name of an environment
>> variable at all. Since obviously you can in Windows,
> Maybe you can't, and you can only have multiple env strings with an empty
> name ;)
So I get at least one, if I do GetEnvironmentVariable(''); ?
More information about the fpc-pascal