From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b1a96e8174ef9f99,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-07 10:27:16 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dallex@erols.com (Daniel Allex) Newsgroups: comp.lang.ada Subject: Need Value of enum type not position. Date: 7 Nov 2003 10:27:16 -0800 Organization: http://groups.google.com Message-ID: <686be06c.0311071027.79d6fa21@posting.google.com> NNTP-Posting-Host: 208.19.133.132 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1068229636 2509 127.0.0.1 (7 Nov 2003 18:27:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 7 Nov 2003 18:27:16 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:2222 Date: 2003-11-07T10:27:16-08:00 List-Id: 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.