Has Delphi analog of enum in C?
+7
A:
Yes. Check out the first portion of Delphi Basics: Enumerations, SubRanges, and Sets.
Justin Niessner
2010-03-04 12:36:58
+16
A:
Yes, Delphi has the following enumerated type construction:
type
TDigits = (dgOne, dgTwo, dgThree <etc>);
Also, like in C, each symbol of an enumerated type may have a specified value, like this:
type
TDigits = (dgOne = 1, dgTwo, dgThree <etc>);
da-soft
2010-03-04 12:38:42
There should be a LMGTFY button, and a badge awarded to people like Hacker, who don't know how to google.
Warren P
2010-03-07 02:52:43