2.65 .count
Generally, this attribute indicates the number of elements in vectors.
With the timer the attribute defines how often it should be repeated. For the event object thisevent, it returns the number of select events triggered by the timer.
Definition
-
Data type
integer
-
Access
get, set
get (function, rule, thisevent)
-
changed event
yes
Defines how often the timer is to be repeated. If the attribute is set at .shadow, the timer is repeated endlessly.
In the event object thisevent, .count indicates the number of timer events (only valid for select event of timer).
With user-defined attributes, this attribute contains at indexed attributes the actual size of the given attribute (= 0 with non-indexed attributes and .shadow attributes).
For user-defined attributes the query is made by indicating the attribute to be requested as index, e.g. .count[<user-defined attribute>].
Furthermore, you can ask the length of vectors by .count in general, for example .count[.record], .count[.child].
For functions and rules this attribute is used to query the number of parameters.
See also
Attribute
Obje
Chapters “Event Object thisevent”, “Functions” and “Named Rules (Subprograms)” in manual “Rule Language”