home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!munnari.oz.au!metro!seagoon.newcastle.edu.au!cc.newcastle.edu.au!glgam
- From: glgam@cc.newcastle.edu.au (GLGAM)
- Subject: pointers to arrays?!?
- Message-ID: <1993Jan11.205412.1@cc.newcastle.edu.au>
- Lines: 29
- Sender: news@seagoon.newcastle.edu.au
- Organization: University of Newcastle, AUSTRALIA
- Date: Mon, 11 Jan 1993 09:54:12 GMT
-
-
- To access a particular element in an array I would use..
-
- ArrayVar[Index] := etc..
-
- Suppose I had setup a pointer to an array on the heap... How do I access the
- individual elements ?
-
- ie.
-
- Type
- ArrayType = Array[1..Max] of Char;
-
- Var
- ArrayVar : ^ArrayType;
- Index : Word;
-
- [..]
-
- ArrayVar[Index]^ := etc..????
-
- Doesn't work.. I know why.. I just can't for the life of me figure
- out what _does_ work..
-
-
- Regards,
-
- Scott.
-
-