ICultureInfo.Name

Syntax

Name: String;

Description

The Name property returns the name of a culture in an abbreviated form.

Comments

The property is created in accordance with the RFC 1766 standard using the following format: <language code2>-<country or region code2>, where the <language code2> is a code of two lower case letters in accordance with ISO 639-1, and <country or region code2> is a code of two upper case letters in accordance with ISO 3166. If a two-letter code is unavailable, use a three-letter code in accordance with ISO 639-2 standard, for example, "div" for a culture that uses the Dhivehi language. If the culture is a neutral one, the Name property is displayed using the following format: <language code2>.

Example

Sub UserProc;
Var
    CF: ICultureInfo;
Begin
    CF := CultureInfo.UserDefault;
    Debug.WriteLine(CF.DisplayName);
    Debug.WriteLine(CF.EnglishName);
    Debug.WriteLine(CF.Name);
    Debug.WriteLine(CF.NativeName);
End Sub UserProc;

On executing the example the current culture determined in the operating system will be obtained. The development environment console displays various culture names.

See also:

ICultureInfo