They're both the same size (32-bit), so casting between the two shouldn't cause any problems. As long as nothing is then trying to dereference the resultant pointer, no worries. TList is quite good about this, so you can use it to store integer values. I've used this in the past to store integer tokens in a TList of pointers to act as markers.
-- Corey Murtagh The Electric Monk "Quidquid latine dictum sit, altum viditur." ----- Original Message ----- From: "Neven MacEwan" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Thursday, November 15, 2001 12:12 PM Subject: [DUG]: mis using pointers > Hi > > I know you'll all leap on theis one but can I cast and integer to a pointer? > > So I can so List.Add(Ord(Screen.Cursor)), where list is tlist --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/