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

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!cs.utexas.edu!usc!sol.ctr.columbia.edu!destroyer!ubc-cs!unixg.ubc.ca!kakwa.ucs.ualberta.ca!access.usask.ca!skyfox.usask.ca!friesenda
  3. From: friesenda@skyfox.usask.ca
  4. Subject: RE: I need help with copying ""records""
  5. Message-ID: <9SEP92.01244365@skyfox.usask.ca>
  6. Sender: news@access.usask.ca (USENET News System)
  7. Nntp-Posting-Host: skyfox
  8. Organization: University of Saskatchewan
  9. References: <1992Sep07.162555.5226@crash>
  10. Date: Wed, 9 Sep 1992 01:24:43 GMT
  11. Lines: 20
  12.  
  13. In a previous article, tech@crash.cts.com (Don Bontemps) wrote:
  14.  
  15. >Now if I wanted to copy data[1] to data [2], could I just say
  16. >data[2] := data[1] or would I have to do it this way
  17. >data[2].name := data[1].name and so on and so forth.  Your help
  18. >would be greatly appreciated.  Thanks (in advance).
  19.  
  20.  
  21. data[2] := data[1];
  22.  
  23. should work fine; both elements are of the same type.  Its the
  24. same as assigning one integer to another - just a different variable
  25. type.
  26.  
  27.  
  28.  
  29. -----------------------------------------------------------------------------
  30. Darryl Friesen          |  "The vet let me keep them... they're my testicles"
  31. Univ. of Saskatchewan   |   - Far Side cartoon: dog talking to his buddy.
  32. friesenda@sask.usask.ca |
  33.