home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / pascal / 6861 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  763 b 

  1. Path: sparky!uunet!spool.mu.edu!agate!doc.ic.ac.uk!mrccrc!warwick!cstaddc
  2. From: cstaddc@csv.warwick.ac.uk (Mr M A Stuart)
  3. Newsgroups: comp.lang.pascal
  4. Subject: ????? passing an array to a procedure  ??????
  5. Date: 24 Nov 1992 03:26:12 -0000
  6. Organization: Computing Services, University of Warwick, UK
  7. Lines: 38
  8. Distribution: world
  9. Message-ID: <1es7ckINN52g@sage.csv.warwick.ac.uk>
  10. NNTP-Posting-Host: sage.csv.warwick.ac.uk
  11.  
  12.  
  13.  
  14.  
  15.     I want to change the contents of a globally defined array within
  16.     a procedure.
  17.  
  18.     i.e.
  19.  
  20.  
  21.     program .....
  22.  
  23.     var store: array[1..10] of integer;
  24.  
  25.     procedure processing
  26.     begin
  27.         store[4] := ......
  28.     ...
  29.     ...
  30.     
  31.     end;
  32.  
  33.  
  34.  
  35.  
  36.     begin
  37.  
  38.     processing
  39.  
  40.     end.
  41.  
  42.  
  43.  
  44. n.b. 
  45.     I am note using turbo pascal just an ansi-standard compiler.
  46.  
  47.     
  48.     Any suggestions !!!
  49.  
  50.