Inside Delphi 2006 (Wordware Delphi Developers Library)

A subrange type represents a part of the base type (any ordinal type). To declare a subrange type, you use the same range syntax as in an array declaration:

type { enumerated type } TDay = (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday); { subrange types } TWeekend = Saturday..Sunday; TPercent = 0..100; TAlphabet = 'a'..'z';

Категории