![]() |
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
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.ListSeparatoris obsolete and is supported for backward compatibility only. To get or set the list separator, use theaqEnvironment.GetLocaleInfoandaqEnvironment.SetLocaleInfofunctions withLOCALE_SLISTas 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_separatorDelphiScript
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
aqStringobject. They use locale-specific date formats when parsing values. -
The name of this property coincides with the name of the
ListSeparatorproperty of theaqStringobject that is obsolete. If you access theListSeparatorproperty without specifying the object name, TestComplete will use theListSeparatorproperty of theUtilitiesobject despite the fact it is obsolete. This is done for backward compatibility.
See Also
ListSeparator Property
GetListItem Method
GetListLength Method

