StructCount()
Counts the keys in a structure.
StructCount( struct=struct );
Returns: Number
Examples
Member Function
animals = {
cow: "moo",
pig: "oink"
};
animalCount = animals.count();
echo("There are " & animalCount & " animal(s) in the 'animals' struct");
Non-Member Function
animals = {
cow: "moo",
pig: "oink"
};
animalCount = StructCount(animals);
echo("There are " & animalCount & " animal(s) in the 'animals' struct");
See also
- Structures
- Len()
- struct.len()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)