Counts all of the objects which match the search criteria.
FUNCTION Count(c : CRITERIA): LONGINT;def vs.Count(c):
return LONGINT| Name | Type | Description |
|---|---|---|
| c | CRITERIA | Search criteria. |
Undocumented is that criteria also accept the object type flag as parameter. The example above can also be written:
CountValue := Count((FP=4)and(T=3)); { 3 is object type flag for 'Rectangle&' }This is valid for all object types being assigned a name in the Script Appendix.
CountValue := Count((FP=4)and(T='Rect'));
{counts all rectangles with a fillpat index of 4}CountValue = vs.Count("(FP=4)AND(T='Rect')")
# counts all rectangles with a fillpat index of 4Availability: from All Versions