home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!rutgers!psuvax1!psuvm!f0o
- From: F0O@psuvm.psu.edu
- Newsgroups: comp.lang.pascal
- Subject: Re: TPW TCollection
- Message-ID: <92328.152730F0O@psuvm.psu.edu>
- Date: 23 Nov 92 20:27:29 GMT
- References: <1992Nov19.081727.18386@usage.csd.unsw.OZ.AU>
- Organization: Penn State University
- Lines: 34
-
- In article <1992Nov19.081727.18386@usage.csd.unsw.OZ.AU>,
- p2018756@cumulus.csd.unsw.OZ.AU (Yagna Pant) says:
-
- >I am a newcomer to Turbo Pascal for Windows programming and
- >would be grateful if you could give me a hint on storing
- >a record using TCollection.
-
- >Suppose if I have a record:
-
- > PClientInformation = ^TClientInformation;
- > ClientInformation = record
- > Name: array[0..50] of Char;
- > Phone: PChar;
- > RegistrationNo: Integer;
- > end;
-
- >How can I store this record using TCollection Object.
- >TPW manual doesn't treat this topic in detail.
-
- >Thanks in advance.
-
- >Yagna Pant
-
- I would simply make the following changes to your code:
-
- Old code:
- ClientInformation = record
-
- New code:
- ClientInformation = object(TObject)
-
- Now you can store your client information into the collection.
-
- [Tim]
-