Subrange Types


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';



Inside Delphi 2006
Inside Delphi 2006 (Wordware Delphi Developers Library)
ISBN: 1598220039
EAN: 2147483647
Year: 2004
Pages: 212
Authors: Ivan Hladni

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net