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: Re: pointers to arrays?!?
- Message-ID: <1993Jan12.172635.1@cc.newcastle.edu.au>
- Lines: 24
- Sender: news@seagoon.newcastle.edu.au
- Organization: University of Newcastle, AUSTRALIA
- References: <1993Jan11.205412.1@cc.newcastle.edu.au> <1993Jan11.151014.6767@odin.diku.dk>
- Date: Tue, 12 Jan 1993 06:26:35 GMT
-
-
- >>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..
- >
- > ArrayVar is a pointer, so in order to access the object it points sto
- > you append a ^ to it. ArrayVar^ is an array. Now index.
- > --
-
- Thank you to those that replied.. I quickly got the idea.. I'm not exactly
- old-hand at TP but am learning fast :-)
-
- Scott.
-
-