home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pascal / 8059 < prev    next >
Encoding:
Text File  |  1993-01-12  |  992 b   |  36 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!munnari.oz.au!metro!seagoon.newcastle.edu.au!cc.newcastle.edu.au!glgam
  3. From: glgam@cc.newcastle.edu.au (GLGAM)
  4. Subject: Re: pointers to arrays?!?
  5. Message-ID: <1993Jan12.172635.1@cc.newcastle.edu.au>
  6. Lines: 24
  7. Sender: news@seagoon.newcastle.edu.au
  8. Organization: University of Newcastle, AUSTRALIA
  9. References: <1993Jan11.205412.1@cc.newcastle.edu.au> <1993Jan11.151014.6767@odin.diku.dk>
  10. Date: Tue, 12 Jan 1993 06:26:35 GMT
  11.  
  12.  
  13. >>Type
  14. >>   ArrayType = Array[1..Max] of Char;
  15. >>Var
  16. >>   ArrayVar  : ^ArrayType;
  17. >>   Index     : Word;    
  18. >>[..]
  19. >>ArrayVar[Index]^ := etc..????
  20. >>Doesn't work..  I know why..  I just can't for the life of me figure
  21. >>out what _does_ work..
  22. > ArrayVar is a pointer, so in order to access the object it points sto
  23. > you append a ^ to it. ArrayVar^ is an array. Now index.
  24. > -- 
  25.  
  26. Thank you to those that replied..  I quickly got the idea..  I'm not exactly
  27. old-hand at TP but am learning fast :-)
  28.  
  29. Scott.
  30.  
  31.