Neven wrote: > 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
Yep. For simple stuff, I do Pointer to Integer and Integer to Pointer with TLists all the time. If I want something fancier (or typesafe), I generate a new TList-like class from a template. Alternatively, for TObject derived stuff, you can inherit from TList and reintroduce the default Items[] property to avoid scattering casts all through your code. TTFN, Paul. --------------------------------------------------------------------------- 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/