[Overview][Types][Procedures and functions][Variables][Index] Reference for unit 'LazUTF8' (#lazutils)

GetEnvironmentStringUTF8

Returns a system environment string.

Declaration

Source position: lazutf8.pas line 71

function GetEnvironmentStringUTF8(

  Index: Integer

):string;

Description

The index is 1 to GetEnvironmentVariableCountUTF8. On Unix and Windows the string often has the form 'name=value'. Beware that Windows knows some special formats, e.g. '=C:=SomePath'. Use GetEnvironmentVariableUTF8 to lookup environment values by name.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.