member countThis function returns the number of members in arrays and structures. Nested members will not be counted.
Indirect parameter passing is disabled
1
| No. | Type | Description |
|---|---|---|
| 1 code |
variable :string |
Variable name |
| Type | Description |
|---|---|
| numeral | Member count |
dim( a[], 10, Hey ); // An array with 10 elements
dim( a[3], 3, Hi ); // 3 sub-members in a[3]
b[Name]= Jim; // A structure with 2 members
b[Age] = 38;
c[] = 1; // A simple variable, 0 members
echo( member count( a[] ), ", ", member count( a[3]), ", ",
member count( b[] ), ", ", member count( c[] ) );10, 3, 2, 0