ResCloseList Function

Action

Closes a hierarchical level in the results file that was opened with ResOpenList.

Syntax

ResCloseList ( )

Notes

  • Use ResOpenList to start a new hierarchical level. The Print commands that follow it are indented until you close the level with ResCloseList.

  • When you view the results file, the item sName is initially collapsed, indicated by the [+] icon next to it. You can expand sName to reveal the indented items under it.

Example

[-] testcase ResCloseListExample ()
	[ ] ResOpenList ("Level 1") // Create a new level
	[ ] Print ("subitem 1") // Add subitems to the level
	[ ] Print ("subitem 2") 
	[ ] Print ("subitem 3") 
	[ ] ResCloseList () // Close this level 
	[ ] // In Results file, you see
	[ ] // [+] Level 1
	[ ] // Clicking on the [+] icon reveals
	[ ] // [-] Level 1
	[ ] // subitem1
	[ ] // subitem2
	[ ] // subitem3