Utilities.ListSeparator Property

Applies to TestComplete 15.20, last modified on January 19, 2022
This property is obsolete. See the Remarks section below.

Description

Use the Utilities.ListSeparator property to specify the character that is used to separate items in lists.

Declaration

Utilities.ListSeparator

Read-Write Property String

Applies To

The property is applied to the following object:

Property Value

The string that holds the character used to separate items in lists.

By default, ListSeparator holds the value specified by Regional Settings in the Windows Control Panel. To restore this value, call the GetFormatSettings method.

Remarks

  • Utilities.ListSeparator is obsolete and is supported for backward compatibility only. To get or set the list separator, use the aqEnvironment.GetLocaleInfo and aqEnvironment.SetLocaleInfo functions with LOCALE_SLIST as the second parameter.

    JavaScript, JScript

    var list_separator = aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SLIST);
    Log.Message(list_separator);

    Python

    list_separator = aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SLIST)
    Log.Message(list_separator)

    VBScript

    list_separator = aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SLIST)
    Log.Message list_separator

    DelphiScript

    list_separator := aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SLIST);
    Log.Message(list_separator);

    C++Script, C#Script

    var list_separator = aqEnvironment["GetLocaleInfo"](LOCALE_USER_DEFAULT, LOCALE_SLIST);
    Log["Message"](list_separator);

    Or, if you want to process items of a string list using locale settings, use the methods and properties of the aqString object. They use locale-specific date formats when parsing values.

  • The name of this property coincides with the name of the ListSeparator property of the aqString object that is obsolete. If you access the ListSeparator property without specifying the object name, TestComplete will use the ListSeparator property of the Utilities object despite the fact it is obsolete. This is done for backward compatibility.

See Also

ListSeparator Property
GetListItem Method
GetListLength Method

Highlight search results