Delphi TObjectlist


[ Related Articles and Replies ] [ DelphiLand FAQ ] [ Delphi Tutorials ]

Posted by Veerle Ruijgers on December 28, 2002 at 22:00:46:

Hi,

can somebody help me with some issues with a TobjectList ?

What is important is that I can keep a position in the list, because it's about a game (school project) and that position corresponds with a position on a playboard. So I store all the objects of the playbord in an TObjectlist.

1.How can I retrieve properties and use methods of the objects in the objectlist on that specific position ? Can I directly do that in a way or do I need to retrieve the object out the list or something ?
2. How can I replace an object on a specific position ? (without changing any other positions)

Hoping on help,

a student in problems..

Veerle

PS. using an 2dim array would propably more easy but my teacher has something with lists...


Related Articles and Replies:


[ Related Articles and Replies ] [ DelphiLand FAQ ] [ Delphi Tutorials ]