On 18/05/2017 00:34, Joe via Lazarus wrote: > But Code Completion offers three functions named GetEnvironmentVariable: > The Ansistring function and the Unicode String function above plus > "GetEnvironmentVariable(lpName: LPCSTR; lpBuffer: LPSTR; nSize: > DWORD): DWORD". Looks like you may have the unit "windows" in your uses clause.