StructCount

Counts the keys in a structure.

Returns: number

Usage

StructCount( structure )

Arguments

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