enumCnt Function

Retrieves the number of elements in the specified enumeration type.


int enumCnt(enum enumtype)

Parameter

Description

enumtype

The enumeration type.

The number of elements in the specified enumeration type.

  • enumCnt(NoYes); //Returns 2, as the two elements are Yes and No.

Community Additions

ADD
Show: