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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bd40601768eaf8fd X-Google-Attributes: gid103376,public From: "Bruce Detter" Subject: Thank you Date: 1999/09/08 Message-ID: <7r6acf$imu3@svlss.lmms.lmco.com>#1/1 X-Deja-AN: 522633220 References: <7r5vh3$imu1@svlss.lmms.lmco.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Lockheed Martin Corporation X-MSMail-Priority: Normal Newsgroups: comp.lang.ada Date: 1999-09-08T00:00:00+00:00 List-Id: Bruce Detter wrote in message news:7r5vh3$imu1@svlss.lmms.lmco.com... > How do you declare an array of variant records where each variant record's > descriminant is the array index? Can it be done at all? I would prefer not > to use access pointers if it can be avoided. > > -- > Bruce C. Detter III > > Thank you for your response, a little experimentation based on Mr. Heaney's solution provided the answer. I used a default variant for the array type declaration, and "re-initialized" the array elements to what I wanted when the array was instanciated. Professor Carlisle, I have several "message" structures I receive, each with 1 or more states I need to represent with ascii characters. I wanted to have a single place where I could look up the ascii characters up based on the message type and state. There is probably several ways I could have done this including wrapping the message structure with in a tagged record and using polymorphism, but I choose the down and dirty, brute force method (for the time being) BCD3