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=0.6 required=5.0 tests=BAYES_40,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5e7d910855b4fd03,start X-Google-Attributes: gid103376,public From: therionics@computer.org (Technobabble) Subject: access type referencing nested array element Date: 1998/09/19 Message-ID: #1/1 X-Deja-AN: 392606730 Organization: Ada95Team NNTP-Posting-Date: Fri, 18 Sep 1998 19:12:23 MDT Newsgroups: comp.lang.ada Date: 1998-09-19T00:00:00+00:00 List-Id: Greetings, Anyone know the syntax for referencing an array element (record) from an access type pointing to an array of records ? pointer -> array of records -> record type xyz_rec is record a : integer; b : integer; end record; type xyz_array is array (1 .. 100) of xyz_rec; type xyz_pointer is access xyz_array; Here is my guess assuming that I want to get the 5th record in an array: XYZ : xyz_pointer; MY_XYZ : xyz_rec; assuming that the pointer XYZ has been assigned to an array of records ..... MY_XYZ := XYZ.xyz_array'(5); or maybe MY_XYZ := XYZ.xyz_array'(5).all; or maybe I'm just guessing too much. help.......... Thanks, Richmond