[Lazarus] Lazarus Release Candidate 1 of 1.8.0

Joe Special at Joepgen.com
Thu May 18 13:46:07 CEST 2017


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 <lazarus at lists.lazarus-ide.org> 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


More information about the Lazarus mailing list