From: dallex@erols.com (Daniel Allex)
Subject: Need Value of enum type not position.
Date: 7 Nov 2003 10:27:16 -0800
Date: 2003-11-07T10:27:16-08:00 [thread overview]
Message-ID: <686be06c.0311071027.79d6fa21@posting.google.com> (raw)
With the following declaration:
type Hov_Mode_Type is
(INVALID,
OFF,
INITIATE,
AUTO);
for Hov_Mode_Type use(
INVALID => 7,
OFF => 8,
INITIATE => 9,
AUTO => 10);
I can get the position
Ada.Text_IO.Put_Line(Integer'Image(Hov_Mode_Type'Pos(I)));
Which returns 0,1,2, or 3. What I want is the value of 7,8,9,10. I
can't get 'val to work. need some help.
next reply other threads:[~2003-11-07 18:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-07 18:27 Daniel Allex [this message]
2003-11-07 19:26 ` Need Value of enum type not position Robert I. Eachus
2003-11-08 0:16 ` Nick Roberts
2003-11-10 13:48 ` Mark Doherty
2003-11-10 18:04 ` Marius Amado Alves
-- strict thread matches above, loose matches on Subject: below --
2003-11-10 17:30 Beard, Frank Randolph CIV
2003-11-18 21:07 ` Randy Brukardt
2003-11-10 18:25 Beard, Frank Randolph CIV
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox