StructCount

Counts the keys in a structure.

StructCount( structure )

Returns: Number

Argument Description
structure
struct, required

Structure to access

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