From: "Jon" <jkjw@brighton.ac.uk>
Subject: Can you use arrays from another package ?
Date: Tue, 21 May 2002 23:28:48 +0100
Date: 2002-05-21T22:27:39+00:00 [thread overview]
Message-ID: <acehkr$2v5$1@saturn.bton.ac.uk> (raw)
say the main program is calle MAIN.ADB
and uses 2 packages X and Y
if there is an array of records in X called A.
how do i use the array A in Y ?
e.g
package body X is
type R is record
hi : string;
bye : integer;
end record;
A : array(1..10) of R;
end X;
now in Y, how do i use that array ? ive tried this :
package body Y is
get( X.A(1).hi );
end Y;
but it doesnt work, does anyone know how to do it ?
thanks
next reply other threads:[~2002-05-21 22:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-21 22:28 Jon [this message]
2002-05-21 23:31 ` Can you use arrays from another package ? tmoran
2002-05-21 23:37 ` Dale Stanbrough
2002-05-22 1:47 ` Jeffrey Carter
2002-05-22 6:13 ` Adrian Hoe
2002-05-22 1:52 ` Robert Dewar
2002-05-22 12:11 ` Jon
2002-05-22 12:36 ` Preben Randhol
2002-05-22 15:16 ` Jon
2002-05-22 19:17 ` Preben Randhol
2002-05-22 22:22 ` Robert Dewar
2002-05-24 4:17 ` Richard Riehle
2002-05-24 13:41 ` Larry Kilgallen
2002-06-01 11:19 ` Georg Bauhaus
2002-05-24 10:07 ` John English
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox