The compiler required an ordinal type at this point. Ordinal types are the predefined types Integer, Char, WideChar, Boolean, and declared enumerated types.
Ordinal types are required in several different situations:
program Produce; type TByteSet = set of 0..7; var BitCount: array [TByteSet] of Integer; begin end.
The index type of an array must be an ordinal type - type TByteSet is a set, not an ordinal.
program Solve; type TByteSet = set of 0..7; var BitCount: array [Byte] of Integer; begin end.
Supply an ordinal type as the array index type.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|