Sys_FoundSet is an Analytica system variable that contains the results of the last search using Find dialog as a list of handles to the objects matching your search criteria. You can see these objects in the Found Objects module in the Outline window. This list appears if you click the List button in the Find dialog. In a Diagram window, the node for each object in Sys_FoundSet is marked with a :
You can can toggle whether to mark Found objects with the icon in the Find dialog with Show matches with checkbox. You can also toggle it in an OnClick or Onchange script by assigning true (1) to system variable DepictFoundSetOnUI.
Assigning to Sys_FoundSet
You can also assign a list of handles to Sys_FoundSet in an OnClick or Onchange script to mark those nodes with the icon. For example, if you want to write a function to identify the variables in a dynamic loop or objects which are missing a Description attribute. Often you might use the built-in FindObjects function, which provides considerably more power and flexibility that the Find dialog.
For example, this could help you debug a dynamic loop by showing all the variables in the same loop as
a variable of interest, say
Inventory. This code in a button's OnClick attribute shows all objects that influence
Inventory and are influenced by it, and so are in the same dynamic loop:
This can be especially helpful with a complex dynamic loop that spans variables in several different diagrams.