Sys FoundSet

Revision as of 23:24, 14 April 2017 by Lchrisman (talk | contribs) (Created page with "category:System Variables category:Analytica 5.0 ''New to Analytica 5.0'' == SysVar Sys_FoundSet == Sys_FoundSet is an Analytica system variable that is pop...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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 Magnifying glass.png, as seen on several nodes here:

FoundSetOnDiagram.png

SysVar DepictFoundSetOnUI

The Magnifying glass.png 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 Magnifying glass.png.

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 Magnifying glass.png 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 Magnifying glass.png icons are temporary.

See Also

Comments


You are not allowed to post comments.