2019.2

Table Of Contents
fifth but there are only three), an empty string is returned.
Exceptions
l EOleException Index is lower than 0.
Name(Integer Index)
Returns the name of the element at the specified index.
Parameters
Index
0-based Index of the element value to retrieve. The first element in the collection is at index 0,
and the last is at Count-1.
Returns
The name of the element as a string.
Exceptions
l EOleException Index is lower than 0 or higher than Count-1.
StringSort
StringSort is a convenience class that provides a generic sorting class for ActiveScript-
compatible languages. It is a non-trivial task to sort data in scripting, especially in VBScript
where there is no equivalent for the JScript sort function. It is designed as a list of strings. Each
string in the list is a key based on which the sort is done. Each key can have an optional integer
value that can be used, for example, to retrieve a record in an array.
To create a StringSort object, use CreateObject("MetadataLib.StringSort") or the {A07730B7-
4100-457E-91E2-31BFF24E1EC4} CLSID. Although the object is published by the metadata
library, it is completely independent of the metadata and can be used in any script, including
those run outside of PlanetPress Suite.
Page 247