Am 18.05.2017 um 09:32 schrieb Mattias Gaertner via Lazarus:
On Thu, 18 May 2017 01:24:39 +0100
Martin Frb via Lazarus <[email protected]> wrote:
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.
Either move the Windows unit in front of the SysUtils unit, or use
SysUtils.GetEnvironmentVariable
Mattias
Yes, both solutions work; thank you, Martin and Mattias. Are they
documented anywhere?
Joe
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus-ide.org/listinfo/lazarus