Ver Mensaje Individual
  #6  
Antiguo 02-07-2007
Avatar de dec
dec dec is offline
Moderador
 
Registrado: dic 2004
Ubicación: Alcobendas, Madrid, España
Posts: 13.111
Reputación: 34
dec Tiene un aura espectaculardec Tiene un aura espectacular
Hola,

Pues como te comenta Neftalí puedes usar un "TObjectList" (unidad "Contnrs") para ir almacenando las distintas instancias de los objetos que crees en tiempo de ejecución. Si escribes "TObjectList" en el editor de código de Delphi, sitúas el cursor sobre dicho "tipo" y pulsas la tecla "F1"...

Cita:
Use TObjectList to store and maintain a list of objects. TObjectList provides properties and methods to add, delete, rearrange, locate, access, and sort objects. If the OwnsObjects property is set to true (the default), TObjectList controls the memory of its objects, freeing an object when its index is reassigned; when it is removed from the list with the Delete, Remove, or Clear method; or when the TObjectList instance is itself destroyed.
Puedes seguir con la ayuda echando un vistazo más pormenorizado a los métodos que te ofrece la clase "TObjectList". Ponte a ello y si encuentras algún problema lo comentas por aquí.
__________________
David Esperalta
www.decsoftutils.com
Responder Con Cita