home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / pascal / 5251 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.4 KB  |  47 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!uchdcc!egodoy
  3. From: egodoy@dcc.uchile.cl (GODOY VEGA EDUARDO SALVADOR)
  4. Subject: Re: I need help with copying "records"
  5. Originator: egodoy@madilhue
  6. Sender: usenet@dcc.uchile.cl (Network News)
  7. Message-ID: <1992Sep08.210745.19983@dcc.uchile.cl>
  8. Date: Tue, 08 Sep 1992 21:07:45 GMT
  9. References:  <1992Sep07.162555.5226@crash>
  10. Organization: Universidad de Chile, Depto. de Ciencias de la Computacion
  11. Lines: 35
  12.  
  13.  
  14. In article <1992Sep07.162555.5226@crash>, tech@crash.cts.com (Don Bontemps) writes:
  15. >This question is regarding the manipulation of record arrays.  Suppose I
  16. >declare the following record array:
  17. >
  18. >
  19. >type
  20. >
  21. >  temp = record
  22. >  name : string[10];
  23. >  date : string[4];
  24. >  pass : string[4];
  25. >  end;
  26. >
  27. >
  28. >var
  29. >
  30. >  data : array[1..100] of temp;
  31. >
  32. >
  33. >
  34. >Now if I wanted to copy data[1] to data [2], could I just say
  35. >data[2] := data[1] or would I have to do it this way
  36. >data[2].name := data[1].name and so on and so forth.  Your help
  37. >would be greatly appreciated.  Thanks (in advance).
  38. >
  39.  
  40. I think that you must copy field by field !
  41. (but try and see , make a little program !)
  42. -- 
  43. +---------------------------------------------------------------------------+
  44. |  egodoy@dcc.uchile.cl                 | Ingenieria Civil Computacion      |
  45. |  Eduardo Godoy Vega                   | U. de Chile.                      | 
  46. +---------------------------------------------------------------------------+
  47.