SetCount Function

Action

Returns the number of members in a set.

Syntax

iSetCount = SetCount (Set)
Variable Description
iSetCount The number of members in the set. INTEGER.
Set The set for which to count members. SET.

Notes

A SET variable can contain a maximum number of members equal to the values defined for that data type in its type...is set declaration. It can also hold an empty set, in which case iSetCount is zero.

Example

[-] COLORS HotColors = {...}
	[ ] Red 
	[ ] Yellow 
	[ ] Orange
[ ] Print (SetCount (HotColors)) // prints: 3