The GetSubItems function returns all the list items that are in a sublist of Item. Duplicate list items are indexed. If Item is not specified, GetSubItems returns all top-level items in list.
GetSubItems returns only the items that are one level lower than Item. See the example.
This example uses the following HtmlList:
LIST OF STRING lsSub
lsSub = BrowserPage.HtmlList ("#1").GetSubItems (2)
ListPrint (lsSub)
// Result:
// Oak
// Pine
// Elm
GetSubItems returns only the items that are one level lower than Item. For example, even if the preceding list had a nested list under Pine, GetSubItems would still return the same values as in the preceding example.