GetContents Function (TreeView)

Class

TreeView.

Action

Returns the contents of a treeview control.

Availability

This functionality is supported only if you are using the Classic Agent.

Syntax

lsContents = treeview.GetContents ([bRawMode])
Variable Description
lsContents List of currently viewable items in the treeview. LIST OF STRING.
bRawMode Optional: Prevents spaces from being trimmed from items. BOOLEAN.

Notes

GetContents returns a list of strings, with one list element for each currently viewable item (that is, an item with no collapsed ancestors). Each string specifies the full path of an item from the root of the tree.

Example

Verify(MyDg.MyTreeView.GetContents(),lsExpectedContents)