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

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!gumby!destroyer!sol.ctr.columbia.edu!ucselx!crash!tech
  3. From: tech@crash.cts.com (Don Bontemps)
  4. Subject: I need help with copying "records"
  5. Organization: CTS Network Services (crash, ctsnet), El Cajon, CA
  6. Date: 07 Sep 92 16:25:54 PDT
  7. Message-ID: <1992Sep07.162555.5226@crash>
  8. Lines: 24
  9.  
  10. This question is regarding the manipulation of record arrays.  Suppose I
  11. declare the following record array:
  12.  
  13.  
  14. type
  15.  
  16.   temp = record
  17.   name : string[10];
  18.   date : string[4];
  19.   pass : string[4];
  20.   end;
  21.  
  22.  
  23. var
  24.  
  25.   data : array[1..100] of temp;
  26.  
  27.  
  28.  
  29. Now if I wanted to copy data[1] to data [2], could I just say
  30. data[2] := data[1] or would I have to do it this way
  31. data[2].name := data[1].name and so on and so forth.  Your help
  32. would be greatly appreciated.  Thanks (in advance).
  33.  
  34.