Programmer's Guide > Interfaces > StringList interface
  
StringList interface
The StringList interface provides the abstraction of an ordered collection of DOMStrings, without defining or constraining how this collection is implemented.
The items in the StringList are accessible by an integral index, starting from 0.
Some AOM methods return StringList objects. A StringList object can be created using the Application.createStringList factory method. For example,
var list = Application.createStringList(10);
creates a new StringList object with 10 elements, all null. The length attribute will return 10 in this case. To create an array where length returns the number of non-null entries, create the StringList with size 0 and add elements using the append method. For example,
var list = Application.createStringList(0);
list.append("one");
list.append("two");
list.append("three");
The length attribute would return 3 in this case.