Show Properties dialog box
Show Properties dialog box

if SearchElements.RepeatingGroup.HasInstances then {
Below: SearchElements.RepeatingGroup.LastFound, 0 * dot;
} In the Advanced pre-search relations for all instances section, you can use the following methods:
- MinRepetitions
- MaxRepetitions
- PaginalMode
- MinRepetitionsOnPage
- MaxRepetitionsOnPage
if StaticText1.Width() < 200dt and StaticText2.Width() < 200dt then Quality: 0.98; Sample code for Post-search relations for all instances: if InstancesCount() < 5 and LastFound.Pages.End <= 2 then Quality: 0.98;
Accessing element instances
Use the following pre-defined names to access element instances:- LastFound - the last detected instance
- CurrentInstance - the current instance when searching inside a repeating element
- Instance ( n ) – instance No. n
- AllInstances - all instances
- HasInstances - checks if any instances have already been found
- InstancesCount - returns the number of detected instances
Condition for stopping the search for element instances
The search for instances stops (in the given branch) if the program encounters an empty hypothesis for a group (i.e. a group that has an empty region) or if the program cannot generate any more hypotheses (there are no more hypotheses in the search area). In Paginal mode, this rule applies to search on one page only. When the program finishes search on one page, it goes on to the next page. MinRepetitionsOnPage, MaxRepetitionsOnPage, MinRepetitions, and MaxRepetitions also affect the hypotheses generation process. You can use the following methods to change the standard hypotheses generation process:- The last detected instance must be the last one:
if SearchElements.RepeatingGroup.HasInstances and then DontFind;
This condition must be entered in Advanced pre-search relations. - The last detected instance (and it is this instance that we are creating the constraint for) is “bad” and the previous instances must be the last (if there re no other “good instances detected”):
If then Quality: 0;
This condition must be entered in Advanced post-search relations.
