countprops( variable )
Parameters
| Type | Description | |
| variable | rvalue | variable to count |
_result
Set to a numeric value that is the number of property elements.
Descriptions
Sets _result to the number of property elements in variable. Only the first level property elements of variable are included. Any properties that exist on array or property elements below variable are not included. In the example below, the first call to msgbox will display 2 while the second will display 1. This is because there are two property elements on var (these are var.prop1 and var.prop2) and one property element on var.prop1 (this is var.prop1.another).
For more information see the user variables topic.
See Also
clearprops, hasprop, getpropname, countarray, cleararray, setarraycount, assignment (=), copy, initialize, clear, isequal, user variables