TDiscreteRecord.ValuesCount Constant

ValuesCount: integer;

Total number of different values stored by the Values array.