home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!uchdcc!egodoy
- From: egodoy@dcc.uchile.cl (GODOY VEGA EDUARDO SALVADOR)
- Subject: Re: I need help with copying "records"
- Originator: egodoy@madilhue
- Sender: usenet@dcc.uchile.cl (Network News)
- Message-ID: <1992Sep08.210745.19983@dcc.uchile.cl>
- Date: Tue, 08 Sep 1992 21:07:45 GMT
- References: <1992Sep07.162555.5226@crash>
- Organization: Universidad de Chile, Depto. de Ciencias de la Computacion
- Lines: 35
-
-
- In article <1992Sep07.162555.5226@crash>, tech@crash.cts.com (Don Bontemps) writes:
- >This question is regarding the manipulation of record arrays. Suppose I
- >declare the following record array:
- >
- >
- >type
- >
- > temp = record
- > name : string[10];
- > date : string[4];
- > pass : string[4];
- > end;
- >
- >
- >var
- >
- > data : array[1..100] of temp;
- >
- >
- >
- >Now if I wanted to copy data[1] to data [2], could I just say
- >data[2] := data[1] or would I have to do it this way
- >data[2].name := data[1].name and so on and so forth. Your help
- >would be greatly appreciated. Thanks (in advance).
- >
-
- I think that you must copy field by field !
- (but try and see , make a little program !)
- --
- +---------------------------------------------------------------------------+
- | egodoy@dcc.uchile.cl | Ingenieria Civil Computacion |
- | Eduardo Godoy Vega | U. de Chile. |
- +---------------------------------------------------------------------------+
-