StructCount()

Counts the keys in a structure.

StructCount( struct=struct );

Returns: Number

Argument Description
struct
struct, required

Structure to access

Alias: structure, object

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