Sys FoundSet
New to Analytica 5.0
SysVar Sys_FoundSet
Sys_FoundSet is an Analytica system variable that is populated by the Find dialog with a list of handles to objects that match your search criteria. The contents of this system variable is depicted in the Outline window, and nodes in the found set may be displayed with a , as seen on several nodes here:
SysVar DepictFoundSetOnUI
The icons show on the nodes only when the system variable DepictFoundSetOnUI is true. This system variable is toggle from the Find dialog by toggling the checkbox for Show matches with
.
Assigning to Sys_FoundSet
There are a lot of useful things you can do by computing a list of handles and assigning that list to Sys_FoundSet. Many of these involve using the FindObjects function. The usefulness comes from the fact that the icons appear, giving you a way to flag nodes based on a computed criteria.
For example, when debugging, it can be useful to know which variables are in the same dynamic loop as a given variable, say Inventory
. From a button's OnClick, you could set the found set to all variables in the same dynamic loop using:
Sys_FoundSet := FindObjects( influences:Handle(Inventory), influencedBy:Handle(Inventory) )
Having the nodes visually marked can help during debugging of complex dynamic loops that span many different diagrams.
Because the set you assign is computed, virtually any criteria is possible. Of course, the point with using the feature is that the icons are temporary.
Enable comment auto-refresher